Concept Flow - Login and logout flow
User visits login page
User submits credentials
Check credentials
Create session
Redirect to [Stay on login page
User clicks logout
Destroy session
Redirect to login page
This flow shows how a user logs in by submitting credentials, the system checks them, creates a session if valid, and logs out by destroying the session.