Session
- Sessions allow users to authenticate once and remain signed in for future requests.
- Sliding window: Everytime you touch it expires_at gets extended.
Name of the cookie:#
- Name of the cookie matches the key we set in
session_store.rb
- Cookie on Browser:
Sample session object:#
- In data
Database table for Session:#
Cleaning up inactive sessions:#
- Automatically cleans up sessions that are inactive for last 30 days.
- https://github.com/rails/activerecord-session_store#installation