Closed aebruno closed 1 year ago
Currently, sessions expire after 15 minutes. This is hard coded in settings here. What we really want is to keep the session alive as long as the user is doing something. Once they become inactive after X seconds, the session should expire.
Let's make the following modifications:
SESSION_EXPIRE_SECONDS
SESSION_EXPIRE_AFTER_LAST_ACTIVITY
SESSION_COOKIE_AGE
@aebruno I thought this time out was related to mokey/openid because we have the same issue with OnDemand.
Currently, sessions expire after 15 minutes. This is hard coded in settings here. What we really want is to keep the session alive as long as the user is doing something. Once they become inactive after X seconds, the session should expire.
Let's make the following modifications:
SESSION_EXPIRE_SECONDS
andSESSION_EXPIRE_AFTER_LAST_ACTIVITY
via env variables.SESSION_COOKIE_AGE
or set session to expire at browser close. See here