🔑Session (Web)
Also known as Session, User Session, Session ID, Session Cookie
How a site remembers you are logged in as you move from page to page.
Think of it like
Think of it like a cloakroom ticket. You show the number, and they know which coat is yours.
Example
Emma logs in once and then opens 20 pages. Each request carries her session cookie, so she never has to log in again.
Why it matters
HTTP forgets each request once it is done. Sessions are what make a login last.
Definition
Common mistake
Key takeaways
- 1A random ID. Kept in a cookie.
- 2Details on the server. Looked up each time.
- 3Ends on logout. Or when it expires.