Story #127 Change forced logout time | User and Technical Documentation - cseseniordesign/reservations GitHub Wiki

End User Documentation

Dev Testing Instructions

  1. Ensure you are on the most recent version of the dev-trainer-on-agenda branch.
  2. Start your dev environment.
  3. Change line 11 in app.rb file where it says :expire_after => to 5 seconds
  4. It should now read :expire_after => 5 which will set the forced logout time to 5
  5. Log into the website and wait five seconds.
  6. Reload the page and confirm that it returns you to the logout screen.
  7. Test again with 10 seconds instead of 5 seconds.
  8. If both tests are successful, then undo changes and revert back to what it was :expire_after => 30*24*60*60
  9. Ensure there are no bugs in the console or any obvious problems with the website.

Production Testing Instructions

  1. Go to https://innovationstudio-manager.unl.edu/home/
  2. Stay logged in for a month.
  3. 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