Cookies Give the Web a Memory
Small pieces of browser-managed state can support sessions, preferences and tracking.

Remembering between requests
HTTP requests do not inherently carry a complete memory of earlier interactions. Cookies provide one way for a site to store a small value in the browser and receive it on later matching requests. A cookie might identify a session or remember a preference. The value often serves as a reference to information held elsewhere rather than containing the whole account. That distinction matters: a small string can still be sensitive if possession of it allows someone to act within a signed-in session. The browser enforces those rules when deciding which requests include the stored value.
Context changes the meaning
A cookie used to keep a shopping basket together has a different purpose from one used to recognize a browser across many sites. Technical settings determine where cookies are sent and whether scripts can read them. Attributes such as Secure, HttpOnly and SameSite help constrain behavior, but they are not interchangeable. Their usefulness depends on the application’s design. A privacy notice should describe actual collection and use, rather than imply that every cookie is either essential or inherently invasive.
Less state can be a design advantage
A simple publication may not need cookies in its own application code at all. Adding analytics, advertising or user accounts can change that picture. The practical discipline is to know which component sets each cookie, how long it lasts and why it exists. Browser storage also includes mechanisms that are not cookies, so a cookie banner alone does not describe every form of local persistence. Thoughtful design starts with a purpose for remembering something and ends with a clear boundary around that memory.
Sources & further reading
AI-assisted editorial explainer. Sources are provided for verification.
Continue reading
The Small Switch Behind the Digital World ↗
Why Silicon Became a Computing Material ↗