Create an animated lesson
On requestThis article is free to read. Creating a lesson uses your daily or stored credits; review the language and settings before starting.
How does a browser cookie work?
TechnologyLesson on requestFree to read
Quick answer
A browser cookie works as a small text file a website stores on your device to remember information between visits. It lets sites keep you logged in, save your preferences, and track items in a cart — by sending the saved data back each time you return.
Step by step
- A website saves a small text file in your browser.
- Your browser sends it back to that site on each visit.
- It remembers logins, settings, and shopping carts.
- 'Third-party' cookies can track you across different sites.
- You can view, block, or delete cookies in your browser.
People also ask
What does a browser cookie do?
It stores small bits of data so a website can remember you — keeping you logged in, saving preferences, or holding your cart between visits.
Are cookies dangerous?
Most are harmless and useful, but third-party tracking cookies can follow your activity across sites, a privacy concern you can block.
What's the difference between first- and third-party cookies?
First-party cookies are set by the site you're on; third-party ones come from other domains (often advertisers) and can track you across sites.
Part of the guide: How the Internet Works →

