Cookies are small pieces of text that a website saves in your browser, and that your browser sends back to it on every following visit. They are how a site "remembers" that you are logged in, what is in your basket or which language you read it in.
In short
- A cookie is a short note in your browser that the site gets back with every request.
- Essential cookies (login, basket) work without asking. Analytics and advertising cookies need your consent in the EU and the UK.
- You can review and delete cookies in your browser at any time.
The cloakroom ticket
You leave your coat at a theatre cloakroom and get a ticket. The attendant does not remember your face - only that number 42 is the grey coat. You show the ticket, you get your coat back.
A website has the attendant's problem: every request to the server looks new and anonymous. A cookie is the ticket. When you log in, the server gives your browser a session ID, the browser shows it with every click, and the server knows it is still you. Delete your cookies and you have lost the ticket - time to log in again.
Worth knowing: the cookie itself usually holds no personal data, just that "ticket number". The data stays on the server.
Kinds of cookies
- Essential - login, basket, form security. Without them the site simply does not work.
- Functional - remembered language, dark mode, recently viewed products.
- Analytics - count visits and show the owner which pages people read (Google Analytics, for example).
- Advertising - tailor ads and measure them, often across many sites at once.
There is also a split by who sets the cookie. First-party cookies come from the site you are visiting. Third-party cookies come from another company whose code is embedded in the page, such as an ad network. The latter are what make tracking you across sites possible - which is why Safari and Firefox block them by default.
Where all those banners come from
In the EU and the UK, storing anything in your browser needs your consent unless it is essential for the site to work. That comes from the ePrivacy rules (PECR in the UK), and where personal data is involved, from the GDPR as well. Hence the consent banners.
A good banner:
- lets you refuse as easily as you accept,
- does not tick the boxes for you,
- lets you change your mind later (often through a link in the footer).
Interestingly, the same rules cover not only cookies but other ways of storing data in the browser, such as localStorage and IndexedDB. The latter is what Rooms and Charts use: your projects stay in your browser and are never sent anywhere.
How to view and delete cookies
- Browser settings - the privacy section lists sites with stored data and lets you delete it.
- The padlock next to the address - click it on any site to see its cookies and permissions.
- Developer tools - F12, then the Application tab (Storage in Firefox) shows every cookie with its name, value and expiry date.
Just remember that deleting all cookies logs you out of most sites.
When it matters to you
- You run a site with analytics or ads - you need a consent banner and a privacy policy that honestly says what you collect.
- A site misbehaves, e.g. you cannot log in - deleting that one site's cookies often fixes it.
- You care about privacy - refuse the consents you do not need, and clear data from sites you no longer use every now and then.
Related terms
cache, HTTPS, session, GDPR, AI and privacy.