$ eli5: how browser cookies work YOU visit a website WEBSITE SERVER sends you a small note COOKIE.txt user=alex cart=3 items BROWSER SAVES IT like a name tag NEXT VISIT server knows you! Like a stamp on your hand at an amusement park -- show it to get back in! WHAT IS A COOKIE? sticky note your name: Alex last visited: today cart: 3 items expires: 30 days A tiny text file saved in your browser with info about your visit. The website wrote it. You store it. WHY ARE THEY USEFUL? Stay logged in No password every single page Remember your cart Items stay even if you leave Your preferences Dark mode, language, etc. Like a librarian who remembers you! CAN YOU REMOVE THEM? YES! Clear your cookies in browser settings. Effect: you get logged out, cart clears, site forgets you. Like erasing your name tag. eli5.cc

ELI5: how browser cookies work

high confidence
June 17, 2026tech

// explanation

// eli5

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

[1]How excacly does cookies work? : r/techsupport - Reddit

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ย ...

[2]Using HTTP cookies - MDN Web Docs - Mozilla

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ย ...

[3]What Are Internet Cookies and What Do They Do? - Kaspersky

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ย ...

[4]Computer Cookies: What They Are and How They Work - HP

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ย ...

[5]How Cookies Work - Acxiom

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ย ...

[6]What Are Cookies? And How They Work | Explained for Beginners!video

Video by Create a Pro Website

What Are Cookies? And How They Work | Explained for Beginners!
[7]What cookies are and how they work!video

Video by FourZeroThree

What cookies are and how they work!
[8]What Happens When You Click "Accept All?"video

Video by Techquickie

What Happens When You Click "Accept All?"

// related topics

quantum-computinghow wifi worksblockchaindata-scienceprompt-engineeringai-agents
industry partner slotavailable
reach people learning about how browser cookies work
your brand appears here as the exclusive industry partner โ€” seen by every reader actively studying this topic. one sponsor per page.
view all options โ†’
explain something else โ†’