GLOSSARY · A WORD, UNPACKED
session
server-side state looked up by an id the browser sends back.
A little more detail
The cookie holds an identifier. The server holds the row: who this is, and maybe when they signed in. Logout deletes the row, so the next request fails the lookup. That is the advantage over a self-contained token. The cost is that every server that accepts the cookie needs access to that store.
See it in practice
These lessons pair the idea with examples you can change and run.