Web Cookies and Privacy Law: A Practitioner's Guide

Web Cookies and Privacy Law: A Practitioner's Guide

Six regulatory regimes govern cookies on the markets most global sites serve. A four-category model and a recurring audit that helps catch compliance regressions before they become a fine.

This guide compares six regulatory regimes that govern cookies on the markets most global sites serve in 2026 — EU, Korea, China, the US state patchwork, Brazil, and the UK — and uses a four-category model (strictly necessary, functional, analytics, advertising), a common industry convention, to map cookies onto all of them. It gives you a single mental model before you go deep on any one jurisdiction, plus a recurring audit.

What HTTP cookies are, and why regulators care

An HTTP cookie is a name-value pair the server sets on a client through the Set-Cookie header and the client returns on subsequent requests through the Cookie header. The mechanism is defined in RFC 6265. Its replacement, RFC 6265bis, tightens defaults around the SameSite and Secure attributes; it is still an IETF Internet-Draft awaiting publication as an RFC (as of Oct 2026, IETF Datatracker). The technical definition has not changed much in twenty years.

The legal definition has. The EU ePrivacy Directive does not regulate cookies as such — it regulates storing information on, or reading information from, the user's terminal equipment, with exemptions only for transmitting a communication or for what is strictly necessary to provide a service the user explicitly requested. The UK's PECR has the same core rule. Personal-data laws such as the GDPR, LGPD, PIPL, PIPA and the CCPA reach cookies when the data involved is personal information. The terminal-equipment rule covers cookies and localStorage, and the EDPB's guidelines, which are not binding, read it as also covering fingerprinting, pixel beacons, and server-side tracking that never touches browser storage, where the information it relies on, such as an IP address, originates from the user's device. EU regulators treat all of these the same way they treat cookies (EDPB Guidelines 2/2023).

http
Set-Cookie: session_id=abc123; HttpOnly; Secure; SameSite=Lax
Set-Cookie: _ga=GA1.1.123456789; Max-Age=63072000; Path=/

The first cookie above is strictly necessary — it carries the authenticated session and falls under the universal exemption from consent. The second is analytics — it generally needs consent under the EU ePrivacy rules, while since February 2026 the UK exempts analytics used only for statistics if users are told and can object, and Brazil's data protection authority accepts legitimate interest for some audience measurement. Same Set-Cookie header, different regulatory treatments.

Google's April 2025 decision to keep third-party cookies in Chrome and its October 2025 announcement retiring most Privacy Sandbox technologies (as of Oct 2026, Privacy Sandbox blog) have not changed the legal picture. First-party cookies still need consent in the EU unless an exemption applies, and tracking that stores or reads information on the device without cookies still counts as access to terminal equipment under ePrivacy Directive Art. 5(3).

The four cookie categories consent systems commonly use

Consent management systems commonly group cookies into four buckets. This is an industry convention rather than a category list that any of these laws defines, and the names vary by vendor:

  • Strictly necessary — load balancing, CSRF tokens, authenticated session, cart state, language preference for the current session. These do not require consent under any regime because they are essential to the requested service.
  • Functional or preference — persistent language choice, remembered logins, theme settings, accessibility preferences. These generally require consent in the EU (session-only interface preferences can be exempt). The UK has exempted functionality cookies since February 2026 if users are told and can object, and California's law works through opt-outs for selling and sharing data rather than consent for these cookies.
  • Analytics or performance — Google Analytics, Plausible, server-side analytics, heatmaps. Treatment depends on whether the tool reads device identifiers or IP addresses and on local rules: the EU generally requires consent, the UK exempts statistics-only analytics if users can object, and Brazil's ANPD accepts legitimate interest for some audience measurement.
  • Advertising or targeting — third-party ad cookies, retargeting pixels, conversion tracking, audience segmentation. These require consent in the EU and the UK, and a working opt-out under California's rules. In China, consent is one of several lawful bases under PIPL, and personalized marketing driven by automated decision-making must offer either an option not based on personal characteristics or an easy way to refuse. In Korea, the regulator (PIPC) says behavioral data used for targeted advertising needs notice and consent when it is processed in a way that identifies a specific person, and can be processed without consent when it does not, as long as accumulating or combining the data does not make individuals identifiable (PIPC policy announcement, Jan 2024).

Where the line falls between functional and analytics is jurisdiction-specific. France's CNIL exempts audience measurement from consent only when strict conditions are met — measurement limited to the publisher's own audience, anonymous statistics, no reuse by the provider (CNIL, as of Oct 2026); tools that do not meet them need consent. When in doubt, classify upward — analytics is safer than functional, and advertising is safer than analytics.

The six regulatory regimes that matter in 2026

Six regimes cover the markets most global sites serve. The table below summarizes how each treats non-strictly-necessary cookies:

RegionPrimary statutesConsent modelCross-border transfer
United StatesCCPA/CPRA (CA) + other comprehensive state lawsOpt-out, with GPC honoringNo general adequacy-style regime in state laws
EU / EEAGDPR + ePrivacy Directive 2002/58Opt-in, granular by categoryAdequacy decision or appropriate safeguards (e.g. SCCs, BCRs)
United KingdomUK GDPR + PECROpt-in for advertising; since Feb 2026, analytics and functionality cookies exempt if users are informed and can objectTransfers approved by regulations (since Feb 2026, replacing adequacy regulations), appropriate safeguards (e.g. IDTA), or derogations
BrazilLGPDConsent for advertising cookies; legitimate interest possible for necessary and some audience-measurement cookies (ANPD guidance)Adequacy decision, ANPD standard contractual clauses, or other LGPD Art. 33 mechanisms
ChinaPIPL + Data Security Law + Cybersecurity LawConsent is one of seven lawful bases (no legitimate interest); explicit where consent is relied onOne of the PIPL Art. 38 conditions (CAC assessment / CAC standard contract / certification / other conditions set by laws, administrative regulations or the CAC), plus notice and separate consent (Art. 39)
KoreaPIPA (amended 2023)Privacy-policy disclosure of automatic collection tools and how to refuse them; separate consent per purpose where consent is the basisSeparate consent, or another Art. 28-8 basis (special provisions in a statute, treaty, or other international agreement; entrustment or storage needed for a contract with the user, disclosed in the privacy policy or notified to the user; recipient certification plus the required measures; PIPC recognition of the destination)

Sources: PECR Schedule A1 (in force February 5, 2026), UK GDPR Chapter V, ANPD cookie guide, ANPD Resolution 19/2024, PIPL, PIPA (official English translation). Verified 2026-10.

The opt-in versus opt-out distinction is the architectural fork. The EU requires consent before any non-exempt cookie fires; the UK (since February 2026) and Brazil allow some analytics without prior consent; China and Korea have no cookie-specific prior-consent rule, but their consent rules apply wherever consent is the legal basis. In California, by contrast, you can set the cookie by default and must offer a working way to opt out of selling or sharing data. A site serving both audiences can default to opt-in globally to keep one codebase, even though that is over-compliant for US users; per-region rules are the alternative.

The cross-border transfer column is where China stands out. Moving personal information out of mainland China requires meeting one of the conditions in PIPL Art. 38 — in practice a CAC security assessment, certification, or the CAC standard contract — together with notice to individuals about the overseas recipient and their separate consent (Art. 39). Under Art. 40, the CAC security assessment is mandatory for critical information infrastructure operators and for processors whose processing of personal information reaches the volume the CAC sets, unless laws, administrative regulations or CAC rules provide that no assessment is needed.

The trinity of obligations: notice, choice, and control

Across the regimes above, operator duties tend to fall into three groups. The implementation differs by regime.

Notice means telling the user what cookies are set, for what purposes, for how long, and by which third parties. Generic language like "we use cookies to improve your experience" is unlikely to meet these requirements. The notice must be specific enough that a user could decide whether to consent based on it alone. Under the CJEU Planet49 ruling, EU users must be told how long cookies last and whether third parties can access them; Korea's PIPA requires the privacy policy to cover automatic collection tools and how to refuse them. Listing each cookie by name is common practice rather than a requirement we found in these texts.

Choice means giving the user a real decision. In opt-in regimes this is consent up front; in opt-out regimes it is an opt-out mechanism reachable from every page. Pre-ticked boxes have been invalid in the EU since the CJEU Planet49 ruling (C-673/17) in October 2019. The choice must be unambiguous (GDPR Art. 4(11)), and in the CNIL's guidance refusing must be as easy as accepting (CNIL Q&A).

Control means ongoing access. The user must be able to revoke consent later through a mechanism with equivalent friction to the original consent — typically a persistent floating icon or footer link. Revocation must actually drop the cookies, not just record a preference. A consent banner without a working revocation mechanism fails the EU rule that withdrawing consent must be as easy as giving it (GDPR Art. 7(3)).

These three obligations map cleanly to four pieces of code: a cookie scanner that produces the inventory, a banner that collects the decision, a preference center that surfaces the revocation, and an audit log that demonstrates compliance to a regulator.

Common misconceptions about cookie compliance

Five misconceptions are worth checking against your own setup.

  • "We block third-party cookies, so we are compliant." First-party analytics generally still need consent in the EU. According to a January 2022 Hunton Andrews Kurth report, the CNIL fined Google EUR 150M in December 2021 because refusing cookies on google.fr and youtube.com took several choices while accepting took one — a banner design failure.
  • "Our users are global, so we follow CCPA." CCPA's opt-out model asks less of operators than the opt-in regimes. The GDPR and UK GDPR also reach a controller or processor not established in their territory: each applies to processing the personal data of people who are there where the processing relates to offering them goods or services there (whether or not payment is required) or to monitoring their behavior as far as it takes place there (Art. 3(2) in each; in the UK, "relevant processing" as defined in Art. 3(2A)), and Korea's PIPA can require foreign controllers to appoint a domestic agent (Art. 31-2); serving those users through a CCPA-only banner can leave you non-compliant.
  • "Cookieless analytics means no consent." This depends on the specific tool. Cookieless tools such as Plausible and Fathom avoid cookies, but whether consent is needed still depends on the technology, its purpose and the applicable law — Fathom's own compliance notes say so. Many "cookieless" analytics actually use fingerprinting or IP-based identification, which trigger the same obligations as cookies.
  • "Implied consent by continued browsing." Not valid consent in the EU on the EDPB's reading — its Guidelines 05/2020, which are not binding, say that scrolling or similar user activity will not satisfy the GDPR's requirement of a clear affirmative action — and inconsistent with the explicit consent China's PIPL requires where consent is the basis (in force since November 2021). The user must take an affirmative action.
  • "A consent banner equals compliance." Without a working revocation mechanism, specific notice, and an audit log, the banner is performative.

Audit criteria for your site

A short audit on a fixed recurring cadence helps catch compliance regressions before they become a fine.

  • Inventory every cookie and similar technology actually set on your site — use a cookie scanner such as Cookiebot's or a Playwright script that records browserContext.cookies() and local storage on each route
  • Map each entry to one of the four categories and one or more lawful bases
  • Open the site in an incognito session simulating each major region (EU, Korea, US, China if applicable) and verify that each region's rules are applied — for example, that no non-exempt cookie fires before consent for EU visitors
  • Trigger consent revocation and verify the cookies are actually dropped — check that none survives
  • Confirm the cookie policy page lists every cookie with name, purpose, duration, processor, and lawful basis — not a generic template
  • Verify the audit log records consent decisions with timestamp, banner version, and category state

If any check fails, the gap is structural, not cosmetic. Fix the underlying mechanism before adjusting banner copy.

Frequently asked questions

Q

If our site has no third-party cookies, do we still need a banner?

A

In the EU, yes — first-party analytics and preference cookies still trigger consent obligations unless they fall within an exemption. In California, businesses that sell or share personal information must honor Global Privacy Control as an opt-out request; other state laws vary. A banner is a common operational choice in the US rather than the mechanism these rules center on.

Q

How do we handle users who visit from multiple regions?

A

Detect the user's region via IP geolocation and apply the strictest applicable regime per session. Look for a consent management system that supports per-region rule sets. Defaulting to EU-style opt-in globally is over-compliant but reduces complexity.

Q

What is the minimum log we need to demonstrate consent?

A

A consent identifier, timestamp, IP truncated or hashed, user-agent class, banner version, category decisions, and the consent text version shown to the user. Retain for the duration of processing plus your standard limitation period.

Q

How often should we re-ask users who rejected cookies?

A

The CNIL's Q&A says the retention period should be judged case by case and that keeping a user's choice for six months is generally good practice (CNIL Q&A, as of Oct 2026). Other EU authorities may take different views.

Project Inquiry