On this page
Overview
A cookie is a small piece of text that a website stores in a visitor's browser. Each time the browser asks that website for a page, it sends the cookie back. That lets the website recognise the browser from one page, or one visit, to the next.
A cookie can't run code on a device. Cookie law matters because websites can use cookies to track people.
What websites use cookies for
Most websites set cookies for several reasons at once:
- keeping a visitor signed in, or remembering what's in their basket
- remembering a choice, such as language or a cookie banner choice
- counting visits and seeing which pages people use
- showing adverts and tracking visitors from one website to another
Cookie law treats these purposes differently. Cookies that are strictly necessary for something the visitor asked for don't need consent. Most others do. See What cookie law asks of your website.
First-party and third-party cookies
A first-party cookie is set by the website the visitor is on. A third-party cookie is set by another website whose content is on the page, such as an advertising or video service. In the Cookie Manager, the Domain column shows which website set each cookie.
Session and persistent cookies
A session cookie is deleted when the visitor closes their browser. A persistent cookie stays until its expiry date, which can be months or years away. The Cookie Manager shows each cookie's Expiry. For a session cookie found by a scan, it shows "Session".
How CookieScan sorts cookies
CookieScan puts every cookie it finds into one of five categories. Visitors accept or reject cookies by category on your banner.
| Category | What the cookies do |
|---|---|
| Necessary | Make basic features work, such as a secure sign-in or saving consent choices. |
| Preference | Remember choices such as language, region or display settings. |
| Statistics | Count visits and pages viewed, so you can see how people use your website. |
| Marketing | Track visitors across websites to show and measure adverts. |
| Unclassified | Not yet identified. You choose their category. |
To learn more, see Cookie categories.
Similar technologies
Cookie law also covers other ways of storing or reading information on a device. Examples are local storage, tracking pixels and device fingerprinting. The ICO's guide to storage and access technologies describes them.
CookieScan's scan lists cookies only. It doesn't detect local storage, tracking pixels or fingerprinting, so check your website's other tracking technologies yourself.