Cookies are small pieces of data stored in your browser by a website.
They help the site “remember” information about you between visits.
Set-Cookie header in the HTTP response.Cookie header — you don’t have to add it manually.| Type | Purpose | Example |
|---|---|---|
| Session cookies | Temporary, deleted when browser closes | Login until you close the tab |
| Persistent cookies | Stay until expiry date | “Remember me” login |
| First-party cookies | Created by the site you visit | Theme preference |
| Third-party cookies | Created by another domain (ads, trackers) | Cross-site tracking |