Timeout session after inactivity by momo3404 · Pull Request #3568 · DMPRoadmap/roadmap
Navigation Menu
{{ message }}
DMPRoadmap / roadmap Public
- Notifications You must be signed in to change notification settings
- Fork 118
Merged
momo3404 merged 2 commits intonext-release/v5.0.2from
Oct 6, 2025Merged
Timeout session after inactivity#3568
momo3404 merged 2 commits intonext-release/v5.0.2from
Timeout session after inactivity#3568
momo3404 merged 2 commits intonext-release/v5.0.2from
Conversation
Copy link Copy Markdown
Collaborator
momo3404
commented
Oct 6, 2025
momo3404
commented
Fixes sessions not timing out after inactivity.
Changes proposed in this PR:
- Use devise's
timeoutablegem to timeout sessions after inactivity. - Inactivity counts as anything that is not a request to the app. So scrolling, typing, and mouse movement with no requests all count as inactivity.
- After the inactivity period has passed, the user will be signed out once they make a request to the app post timeout and will then be redirected to the login page with the flash message "Your session expired, please sign in again to continue".
aaronskiba approved these changes Oct 6, 2025
momo3404
deleted the
momo/add-session-timeout
branch
aaronskiba
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment