coldfront
coldfront copied to clipboard
Expire sessions X seconds after the last activity
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:
- Use this module django-session-timeout in auth.py
- Add support for setting
SESSION_EXPIRE_SECONDSandSESSION_EXPIRE_AFTER_LAST_ACTIVITYvia env variables. - We probably need to unset
SESSION_COOKIE_AGEor set session to expire at browser close. See here
@aebruno I thought this time out was related to mokey/openid because we have the same issue with OnDemand.