ELI5: how browser cookies work
// explanation
What is a browser cookie?
A browser cookie is like a tiny sticky note that a website puts on your computer [2]. When you visit a website, the server sends this small piece of information to your browser, and your browser saves it [3].
Why do websites use cookies?
Websites use cookies to remember things about you, like your username or what items you put in your shopping cart [5]. When you come back to the website later, your browser sends that sticky note back to the server, so the website knows who you are [5].
What information do they store?
Cookies store identifying information that helps websites recognize you when you return [3]. This could be your login details, your preferences, or items you were looking at [4].
How does the cookie travel back and forth?
When you first visit a website, the server sends you a cookie through special instructions called HTTP headers [1]. Later, when you visit that same website again, your browser automatically sends the cookie information back to the server [5].
// sources
Mar 27, 2024 ... The way that it works is that the website sets one or more HTTP headers that tell your browser to create or update a cookie with the data givenย ...
Oct 8, 2025 ... A cookie (also known as a web cookie or browser cookie) is a small piece of data a server sends to a user's web browser. The browser may storeย ...
The web server โ which stores the website's data โ sends a short stream of identifying information to your web browser in the form of cookies. This identifyingย ...
May 30, 2024 ... How Do Cookies Work? ยท You visit a website: Your browser sends a request to the website's server for the page you want to view. ยท The server sendsย ...
A cookie is a small bit of information that a website stores on your computer. When you revisit the website, your browser sends the information back to theย ...
Video by Create a Pro Website

Video by FourZeroThree

Video by Techquickie
