01

The web forgets by design

The basic protocol of the web treats every request as new. When your browser asks a server for a page, the server sends it and, by default, keeps no memory of who asked. That made the early web simple and robust, but it created a problem for shops and services: how do you remember what is in someone's basket from one page to the next? In 1994 engineers at an early browser company introduced a solution, the cookie, named after an older computing term for a small token passed between programs. Within a few years almost every website relied on cookies in some way.

02

How a cookie works

When you visit a site, its server can include an instruction in its response asking the browser to store a cookie: a short piece of text, often just a random identifier, along with rules about which website may read it and when it expires. On every subsequent request to that site, your browser automatically sends the cookie back. The server looks up the identifier and knows it is talking to the same browser. A cookie is not a program and cannot run code or read files on your device. It is closer to a cloakroom ticket, meaningless in itself but linked to information held by the website.

03

Useful cookies

Many cookies are essential. Session cookies keep you logged in to email or online banking as you move between pages, and expire when you close the browser or after inactivity. Others remember your language, currency or whether you prefer a dark theme, so a site in the UAE might recall that you chose Arabic and prices in dirhams. Security cookies help sites detect suspicious login attempts. These are first-party cookies, set by the website you are actually visiting. Blocking all cookies breaks much of the modern web, which is why browsers and privacy rules usually distinguish between these and tracking cookies.

04

Following you around

Third-party cookies are set by a different domain from the one in your address bar. When a news page includes an advert, a social media button or an analytics script from another company, that company can set and read its own cookie in your browser. If the same company appears on thousands of sites, it can recognise your browser on each one and build a profile of your browsing, used to target adverts and measure their effect. That is why shoes you looked at on one site can follow you to another. This practice, rather than cookies themselves, is what drew the attention of regulators and privacy advocates.

05

Banners and the law

Data-protection laws in many jurisdictions, notably in Europe, generally require websites to obtain consent before setting non-essential cookies, which is why cookie banners became so common. The UAE's federal personal data protection law and similar rules elsewhere in the Gulf set principles for how personal data may be collected and used. Banners are often designed to make accepting easier than refusing, a pattern regulators have criticised. Meanwhile, several browsers now block third-party cookies by default, and the advertising industry has explored alternatives. Some tracking, however, uses other techniques, such as fingerprinting a browser's unique combination of settings, which cookie controls alone do not stop.

06

Practical steps

You can view and delete cookies in your browser's settings, block third-party cookies, or use private browsing windows, which discard cookies when closed but do not make you anonymous to websites or your network provider. On cookie banners, choosing 'reject non-essential' or adjusting preferences is usually possible, if sometimes buried. Deleting all cookies will log you out of sites, so it is worth weighing convenience against privacy. Remember that logging in to an account identifies you regardless of cookie settings. Understanding the difference between remembering and tracking makes cookie decisions less bewildering and helps you choose the trade-off that suits you.

FOLLOW THE EVIDENCE

Sources & further reading

Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.