Concept Flow - Login and logout flows
User visits login page
User submits credentials
Server checks credentials
Show error message
Create session
Redirect to protected page
User clicks logout
Destroy session
Redirect to public page
This flow shows how a user logs in by submitting credentials, the server validates them, creates a session if valid, and redirects. Logout destroys the session and redirects to a public page.
