loading
loading
A small piece of data the browser stores and sends back to a site on later requests.
Cookies are often used for sessions, preferences, analytics, and auth state. They need careful flags like HttpOnly, Secure, and SameSite because stolen or badly scoped cookies can compromise accounts.
Plainly
Think of Cookie as roads and power for the app city. A small piece of data the browser stores and sends back to a site on later requests.
In practice
Use it when local behavior needs to become a reachable, reliable deployed service. In practice, define the owner, input, output, and failure mode before you rely on it.