> ELI5: how cookies work Cookies are tiny sticky notes your browser saves them so websites remember you You visit a website open browser, type URL STEP 1 request Server replies & writes a note "Hi! Here's your sticky note: user=alex " STEP 2 cookie Browser keeps the sticky note saved on your device STEP 3 next visit Browser shows the note to the server "Hey! Here's my note: user=alex" "Welcome back! " STEP 4 What's inside a cookie? It's just a tiny text file with key=value pairs user = "alex" theme = "dark" cart_items = "3" expires = "2025-01-01" Small, readable text no secrets, no code stored per website What do they remember? You're logged in Items in your cart Dark mode preference Your language / region like a name tag the website gave you Do cookies last forever? Session cookie Deleted when you close your browser. Like a sticky note on a whiteboard. Persistent cookie Stays until expiry date or you clear it. Like a note in a folder with a date. You can delete all cookies in browser settings eli5.cc

ELI5: how cookies work

medium confidence
April 27, 2026tech

// explanation

// eli5

What are internet cookies?

Cookies are like tiny sticky notes that websites put on your computer to remember information about you [2][4]. When you visit a website, it writes down things like your favorite color or that you're logged in, and saves this information in a small file [4].

Why do websites use cookies?

Websites use cookies so they don't have to ask you the same questions over and over again [3]. Instead of asking "Who are you?" every time you visit, the website can read the sticky note it left behind and say "Oh, welcome back! I remember you!" [2][5].

What happens when you visit a website again?

When you go back to a website, your browser automatically sends those tiny sticky notes back to the website [1][5]. The website reads them and remembers your preferences, like if you like dark mode or what items are in your shopping cart [2][4].

Can cookies be dangerous?

Cookies themselves are just information, but some websites might use them to track where else you go on the internet [3][4]. That's why you sometimes see ads following you around online!

// sources

[1]I need more explanation on how cookies work : r/learnprogramming

May 8, 2024 ... Cookies are temporarily - tho sometimes for a very long time - stored by the browser. They are then sent with the requests to a server.

[2]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ย ...

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

Cookies are created to identify you when you visit a new website. The web server โ€” which stores the website's data โ€” sends a short stream of identifyingย ...

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

May 30, 2024 ... Computer cookies, also known as internet cookies, are small text files that websites store on your computer to remember information about you and your browsingย ...

[5]Cookies: How do they work and how to use them?

Oct 30, 2024 ... Cookies are short text files that record data about user preferences. They're stored in the browser on the user's device and sent back to the server every timeย ...

[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]Web Cookies Explained | How cookies work with HTTP | TechTermsvideo

Video by TechTerms

Web Cookies Explained | How cookies work with HTTP | TechTerms
sponsor this explanationยท available placement
Your brand could appear hereReach readers learning about how cookies work. Your brand could appear here with a short description and link.Sponsor this page โ†’
explain something else โ†’