SoDeep IconSoDeep
·
The way a computer uses cookies to remember your preferences

The way a computer uses cookies to remember your preferences

@Nan_Binary · June 18, 2026

Think of a website like a forgetful shopkeeper at a seaside pier. Every time you visit, he hands you a tiny, invisible ticket—a cookie—to tuck into your pocket. It’s not a real treat, just a bit of digital faff that records your preferences.

When you return, the shopkeeper checks your pocket, sees the ticket, and instantly remembers you’re the one who hates pop-up ads and prefers dark mode. It's like a digital luggage tag for your identity.

Without these little crumbs, the internet would have the memory of a goldfish. You’d be forced to re-introduce yourself and reset your settings every single time you clicked a new page.

Wait, so can other shopkeepers just peek into my pocket and see those tickets?

In a tidy world, no. A shopkeeper is only allowed to check the specific tickets they handed you. It’s a bit of digital etiquette that keeps your preferences private between you and that one site.

However, some massive department stores are a bit cheeky. They place tiny, invisible stalls inside everyone else's little seaside huts. These are "third-party" cookies, and they act like a nosy neighbor who follows you from shop to shop.

Since that one big store is everywhere, they can watch you buy a hat at one stall and a bucket at another. They aren't just remembering your settings; they’re quietly mapping out your entire afternoon stroll.

Why would a small shop let those nosy neighbors set up stalls anyway?

It’s a bit of a devil’s bargain, dear. Those tiny stalls often offer the shopkeeper something 'free' and shiny—like a fancy map of the pier or a megaphone to shout at passersby.

In exchange for these gadgets, the shopkeeper lets the big department store tuck a tracker into your pocket. The small shop gets a free tool, and the big store gets to follow you home.

It’s rarely about kindness; it’s about rent. Since the small shop can’t afford fancy tech, they pay for it by letting the giants spy on their customers.

What do these 'free tools' look like when I'm actually browsing?

Most often, they’re those handy social media buttons or "Login with" options. They look like helpful shortcuts, but they’re actually tiny outposts for the giants to sit and watch.

Think of "Like" buttons or comment sections. The shopkeeper gets a lively atmosphere for free, while the giant gets a front-row seat to see exactly what you’re interested in.

Even the "visitor counters" are usually provided by a giant. It’s a free ledger for the shop, but the giant keeps a carbon copy of every single entry.

If I never click those buttons, am I safe from the giant's ledger?

Oh, bless your heart, if only it were that simple! Just having that button on the page is like having the giant’s clerk standing in the doorway. You don't have to shake his hand for him to jot down your arrival.

When your browser loads that 'Like' button, it sends a tiny 'hello' to the giant’s server to fetch the image. In that split second, the giant sees your digital face and knows which shop you're visiting.

It’s passive snooping. You aren't talking to them, but they are certainly watching you, quietly ticking boxes on their clipboard while you browse.

Explore in card mode →

Related topics

How a computer uses 'queues' to handle information in orderThe logic of 'database indexing' for finding information quicklyThe way a computer screen uses pixels to display imagesThe way 'responsive design' makes a website fit any screen sizeThe logic of 'pathfinding algorithms' for navigating digital mapsThe way a computer uses 'encryption' to keep messages private