#6275 - Present an overlay when a session is about to expire
| Identifier | #6275 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Present an overlay when a session is about to expire |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | PDStig |
| Version | 11 beta8 |
| Addon | core |
| Description | JavaScript should ping an endpoint every minute to check session expiration. If the session is about to expire (5 minutes), present an overlay with a button. If the button is clicked, an AJAX call is made back to the endpoint (with a POST param) resetting the session expiration time. Make sure to have the date/time the session will expire present on the overlay. Or just use a countdown. Make sure this is only done for logged in members and not guests. Make sure language says "may get logged out", not "will", because those with Remember Me will get auto-logged back in if still valid. |
| Steps to reproduce | |
| Additional information | This will add an additional line of defense for cases where users don't know their session expired, tried to submit something, failed due to an expired session, and then lost all the information in the process when autosave fails. |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
This hotfix implements session expiration warnings as a browser prompt or JavaScript overlay.
The user will be warned when their session will expire in 4 - 5 minutes. If they click okay before it expires, the session will be refreshed automatically. Otherwise, if the session expired, a prompt will tell the user they need to refresh the page.
TODOs in place for creating config options for the frequency of polling and the threshold at which we warn a user their session is about to expire.