Cookies & Sessions
Cookie / Session
A small note your site leaves in the browser so it remembers 'this person already logged in'.
💡 It's a theme park wristband. Once it's on, you don't have to show your ticket again.
🤖 Say this to your AI
When someone logs in, store the session in a cookie so they stay logged in after a refresh. Also add a 'Keep me logged in' checkbox that lasts 30 days.
The key word is ‘Cookie / Session’. Including it helps AI understand you much more precisely.
📌 Good to know
A bigger notepad stored only in the browser is called 'localStorage'. This site saves your 'recently viewed terms' in localStorage too.
When to use it
- Keeping people logged in
- Remembering a shopping cart or language setting
Also called: cookie, session, stay logged in, remember me, token, login session