Concept Flow - Session handling
User sends HTTP request
Rails receives request
Check for session cookie
Load session
Controller action runs
Modify session data?
Send response with session cookie
User browser stores cookie
Rails checks for a session cookie in the request. If found, it loads session data; if not, it creates a new session. Controller actions can read or write session data, then Rails sends a response with updated session info.