Concept Flow - Remember me functionality
User logs in
Check 'Remember me' box?
No→Create session only
Yes
Generate remember token
Store token digest in DB
Store token in cookie
User closes browser
User returns
Check cookie token
Match token with DB digest?
No→Ask to login
Yes
Log user in automatically
This flow shows how the app remembers a user by storing a token in a cookie and matching it with the database to keep the user logged in.