Story #127 Change forced logout time | User and Technical Documentation - cseseniordesign/reservations GitHub Wiki
End User Documentation
Dev Testing Instructions
- Ensure you are on the most recent version of the
dev-trainer-on-agenda
branch.
- Start your dev environment.
- Change line 11 in
app.rb
file where it says :expire_after =>
to 5 seconds
- It should now read
:expire_after => 5
which will set the forced logout time to 5
- Log into the website and wait five seconds.
- Reload the page and confirm that it returns you to the logout screen.
- Test again with 10 seconds instead of 5 seconds.
- If both tests are successful, then undo changes and revert back to what it was
:expire_after => 30*24*60*60
- Ensure there are no bugs in the console or any obvious problems with the website.
Production Testing Instructions
- Go to https://innovationstudio-manager.unl.edu/home/
- Stay logged in for a month.
- If it does not log you out, congratulations!
Technical Documentation
app.rb
- Added a code to change the expiration time for the session cookie to keep the user logged in