How a simple shopping cart solution became the web's most controversial tracking tool
In short: Cookies were invented in 1994 to solve a mundane technical problem: how to help a web server remember items in a virtual shopping cart. Today, these small data packets are the backbone of web state, enabling logins and personalization, while simultaneously fueling a massive industry of cross-site user tracking.
The concept of the cookie was born from the 'magic cookie'—a data packet used by Unix programmers—when Lou Montulli, a Netscape engineer, adapted it for web communications in June 1994. Tasked by MCI to build an e-commerce application, Netscape needed a way to maintain state across HTTP transactions, which are inherently stateless. By storing a unique session identifier on the user's computer, servers could finally link a user to their specific shopping cart or authenticated session without needing to retain partial transaction states themselves.
While essential for functionality, cookies quickly evolved into a powerful mechanism for surveillance. Because browsers automatically send stored cookies back to the server with every request, they allow for precise tracking of browsing habits. By 1996, the public and regulators began to notice the privacy implications, leading to FTC hearings and eventually the European requirement for 'informed consent' for non-essential cookies. The industry responded with various standards, such as RFC 2109 and RFC 6265, attempting to balance utility with privacy.
Modern security measures have introduced layers of complexity to mitigate risks like cross-site request forgery (CSRF) and cookie theft. Flags such as 'Secure' ensure transmission only over HTTPS, while 'HttpOnly' prevents client-side scripts from accessing sensitive data. More recently, the 'SameSite' attribute—introduced in Chrome 51—has become a critical tool for restricting how cookies are shared across domains. Despite these safeguards, the tension remains: cookies are both the invisible glue that makes the modern web interactive and a persistent, often contested, tool for monitoring individual behavior.
Opens the Intellect+ feed with this card first. Swipe up for the next one.
Sources
- Summary by Intellect · source: HTTP cookie
To cite this card, link to https://intellectplus.co.uk/app/technology-http-cookie.
How we source, check and correct cards: Editorial standards.
General information, not professional advice. Spotted an error? Flag the card or see corrections and complaints.
Intellect Plus is a visual educational discovery platform for exploring fascinating facts and ideas. Brain Food, Not Brain Rot. What is Intellect Plus?
Related
More in Inventions · More in Technology · Latest · A–Z · All topics