How to automatically close the user session (at the browser side) after XX hour or days?

How to automatically close the user session (at the browser side). So the user has to log back in after specified amount of time.

Note: Added to Arcadia Visualization Server (Safety Valve - settings_cm.py)

SESSION_EXPIRE_AT_BROWSER_CLOSE = False ← mutually exclusive from COOKIE TIMEOUT
SESSION_SAVE_EVERY_REQUEST = True
SESSION_COOKIE_AGE = 60 * 5 ← in seconds , is a hard limit. If you want it based on last activity then set SAVE EVERY REQUEST to True

1 Like

Thank you Shaun! This is very handy ;D