ConsentPixel – Privacy · Verified

Consent

What Is a Third-Party Cookie? The Types of Cookies Explained

First-party vs third-party, the four consent categories, and the strange ones — super, flash and zombie cookies — in plain English. Plus the 2026 twist most guides get wrong: third-party cookies didn't actually go away.

CP ConsentPixel Team Updated September 2026 15 min read
~30%+
of web traffic already blocks third-party cookies by default (Safari, Firefox & Brave)
4
consent categories every cookie banner must sort trackers into
$5,000
statutory damages per violation under California's wiretap law (Cal. Penal Code §637.2)

What is a third-party cookie? It's a small text file set by a domain other than the website you're actually visiting — usually an advertiser, analytics provider or social widget — so that company can recognize you as you move from site to site. That single distinction, first-party versus third-party, is the most important thing to understand about cookies, because it drives almost everything else: whether a cookie helps a site work or tracks you across the web, whether a browser blocks it by default, and whether it lands you in a consent-law problem.

This guide is the taxonomy — every type of cookie that matters, sorted the way the law and your consent banner actually sort them. If you just want a plain-English primer on what cookies are and how to clear them in your browser, start with what cookies are, in plain English and come back here when you want the full map. We'll cover first-party vs third-party, the four consent categories (strictly necessary, functional, analytics and targeting), the short-lived versus long-lived split, and the weird ones most articles skip — super cookies, flash cookies, zombie cookies and the cookie security flags developers actually set. And because 2025 rewrote the headline everyone remembers, we'll clear up what really happened to third-party cookie deprecation.

Not legal advice. This is a plain-English educational guide. Cookie and consent rules vary by jurisdiction and change often; confirm your obligations with a qualified professional.

Cookies, in one paragraph

A cookie is a small piece of data a website asks your browser to store, then hands back on your next request so the site can "remember" something — that you're logged in, what's in your cart, which language you picked. Technically these are HTTP cookies (the "what are HTTP cookies" question is just this: cookies delivered over the web's HTTP protocol via a Set-Cookie header). On their own, cookies are neutral plumbing. What makes one type of cookie helpful and another invasive isn't the file format — it's who sets it, how long it lives, and what it's used for. Those three questions are exactly how we'll classify them.

The word "cookie" tells you almost nothing. Who set it, how long it lasts, and what it's for tells you everything.

The three axes of cookie classification

First-party vs third-party cookies

The single most useful way to classify a cookie is by origin: which domain set it, relative to the site showing in your address bar.

What is a first-party cookie?

A first-party cookie is set by the domain you're actually visiting. If you're on yourshop.com and yourshop.com stores a cookie, that's first-party. These are the cookies that keep you logged in, hold your cart, remember your currency and let the site function. Because they belong to the site you chose to visit, browsers treat them as trusted and rarely block them.

What is a third-party cookie?

A third-party cookie is set by a different domain than the one in your address bar — loaded through some element the page embeds, like an ad, a "Like" button, an embedded video or an analytics tag. On yourshop.com, a cookie set by doubleclick.net or facebook.com is third-party. Because that same third party's code is embedded on thousands of other sites, its cookie can recognize you everywhere it appears — which is precisely how cross-site tracking and retargeting ads work. This is what people mean by "tracking cookies," and it's why third-party cookies attract nearly all the privacy scrutiny.

FIRST-PARTY vs THIRD-PARTY Your browser on yourshop.com 1P cookie ✓ kept 3P cookie ✕ risky yourshop.com the site you chose · FIRST-PARTY ad-network.com embedded ad · THIRD-PARTY …and news-site.com, blog.com, store2.com same ad-network.com recognizes you here too
 First-party cookieThird-party cookie
Set byThe site in your address barA different embedded domain (ad, widget, tag)
Typical jobLogin, cart, language, first-party analyticsCross-site ads, retargeting, social tracking
ScopeOne site onlyEvery site the third party is embedded on
Browser defaultAllowedBlocked in Safari, Firefox & Brave; allowed in Chrome
Consent needed?Yes, if used for analytics/marketingAlmost always yes
⚠︎ The myth that trips up site owners
"First-party means I'm safe." Not by itself. A first-party analytics or session-replay script that fires before a visitor consents is still processing personal data without permission — and under California's wiretap statute, that's exactly the pattern behind the current wave of litigation. Origin isn't the same as consent. We'll come back to this under blocking.

A third-party cookie example, step by step

The mechanics are easier to see with a concrete third-party cookie example. Say you visit an online shoe store:

1You load shoestore.comThe page includes an ad slot served by ad-network.com and a Meta "Pixel" from facebook.com.
2Those embedded scripts set their own cookiesBecause they come from other domains, the cookies they drop are third-party. One might store an ID like uid=8a3f….
3You leave and visit news-site.comIt happens to run ads from the same ad-network.com. Your browser sends that same uid cookie back.
4The network now knows you saw shoes, then read the newsIt builds a cross-site profile and shows you shoe ads for a week. That profile — assembled without you ever telling the ad network anything — is the whole point of a third-party cookie.

This is why "should I block third-party cookies?" is a reasonable question for an individual browsing the web, and why regulators treat these cross-site cookies as personal data requiring consent. It's also why every mainstream browser except Chrome now blocks them by default — more on that under deprecation.

The four consent categories

Origin tells you who set a cookie. But your cookie banner doesn't ask visitors about domains — it asks them about purpose. Nearly every consent management platform sorts cookies (first- and third-party alike) into the same four buckets, which come straight from the way EU guidance and the major CMPs standardized them. Knowing these four is the practical core of cookie compliance.

CategoryWhat it doesExampleConsent?
Strictly necessary
(essential)
Makes the site work: login, cart, security, load-balancingSession ID that keeps you logged in; CSRF tokenNo — exempt
FunctionalRemembers preferences and enhances experienceLanguage choice, chosen region, "remember me," live-chat stateYes
Analytics
(performance)
Measures traffic and how people use the siteGoogle Analytics _ga, page-view counters, heatmapsYes
Targeting
(advertising)
Builds profiles for ads and cross-site marketingMeta Pixel, ad-network IDs, retargeting cookiesYes

What are strictly necessary (essential) cookies?

Strictly necessary cookies are the ones a site genuinely can't work without — keeping you signed in, holding items in your basket through checkout, balancing server load, blocking fraud. Because the visitor asked for the service that requires them, most consent regimes treat them as exempt: you don't need opt-in to set them (though you should still disclose them). The catch is that "necessary" is frequently abused as a dumping ground. Analytics and marketing cookies are not necessary, no matter how useful they are to you.

What are functional cookies?

Functional cookies remember choices that improve the experience but aren't essential — your language, your last-viewed store, whether you dismissed a banner, chat-widget state. They usually require consent because the site works fine without them.

What are analytics (performance) cookies?

Analytics cookies — also called performance cookies — measure how visitors use a site: which pages they see, how long they stay, where they drop off. Google Analytics is the classic example. These feel harmless to site owners, but they process behavioral data and, in most jurisdictions with a cookie-consent regime, require opt-in before they run. In US wiretap litigation, analytics and session-replay scripts firing before consent are a central allegation — so "it's just analytics" is not the safe harbor many assume.

What are targeting (advertising) cookies?

Targeting cookies — the advertising category — are the most sensitive. They build profiles across sites to serve personalized ads and measure campaigns; the Meta Pixel, Google Ads and most ad-network cookies live here, and they're overwhelmingly third-party. These always require consent, and they're the category most likely to draw a complaint when they fire early.

Three ways to classify any cookie BY ORIGIN (who set it) BY PURPOSE (consent) BY LIFESPAN First-party Third-party Strictly necessary Functional Analytics / performance Targeting / advertising Session (deleted on close) Persistent (has expiry) One cookie sits on all three axes — e.g. a third-party, targeting, persistent Meta Pixel cookie. Strictly-necessary cookies are the only category generally exempt from opt-in consent.

Session vs persistent cookies

The third axis is lifespan. A session cookie lives only while your browser session is open and is deleted the moment you close the tab or browser — it has no expiry date, so it's held in memory. A staff login token or a "you have items in your cart" flag is typically a session cookie. A persistent cookie carries an explicit expiry (a day, a month, two years) and survives restarts, which is how a site remembers you weeks later. "Remember me," long-lived analytics IDs and advertising cookies are usually persistent.

That's the essential distinction; because it deserves its own worked examples — including how expiry dates and the affiliate-marketing "cookie duration" concept work — we cover it in depth in session cookies vs persistent cookies. For classification here, just remember: lifespan is independent of origin and purpose. A cookie can be first-party and analytics and persistent all at once.

See which cookies fire before consent on your site

Most sites set analytics and targeting cookies the instant a page loads — before anyone clicks "Accept." Scan your site free and see exactly which trackers fire before consent, in about 10 seconds.

Run a free scan →

Super, flash, zombie & other exotic cookies

Beyond the everyday cookie types, a handful of "exotic" tracking mechanisms exist specifically to be harder to delete or to identify you when ordinary cookies can't. Most guides skip these; they matter because they're the reason "just clear your cookies" isn't the whole answer.

★Super cookiesNot a normal browser cookie at all. A super cookie is tracking data injected at the network level (historically by ISPs via a unique header) or stored somewhere outside standard cookie storage, so it survives clearing cookies and follows you across sites. You can't delete it the usual way.
★Flash cookies (LSOs)Local Shared Objects stored by the old Adobe Flash plugin, outside the browser's cookie jar. They were notorious for "respawning" deleted cookies. Flash is dead, but flash cookies are the origin of the zombie-cookie technique.
★Zombie cookiesAny cookie that recreates itself after you delete it, by keeping a backup copy elsewhere (Flash storage, localStorage, an ETag) and rebuilding the deleted cookie from it. Delete it and it "comes back to life" — hence the name.
★Cookie loggerNot a cookie type but an attack: a cookie logger is code (often injected via cross-site scripting) that steals the cookies in your browser — especially session cookies — and sends them to an attacker, who can then hijack your logged-in session. It's the reason the security flags below exist.
ℹ︎ Fingerprinting: tracking without any cookie
The industry's answer to cookie-blocking is often browser fingerprinting — identifying you from your device's configuration (fonts, screen size, GPU, time zone) with no cookie stored at all. It's worth knowing that "no cookies" does not mean "no tracking," which is a big reason consent law focuses on the act of tracking, not the cookie file. See website trackers explained for pixels, tags and fingerprinting.

Cookie security flags: HttpOnly, Secure & SameSite

When developers ask "what is an HttpOnly cookie" or "what is a secure cookie," they're really asking about attributes a cookie can carry. These aren't separate types so much as safety settings that decide how a cookie behaves — and they're what protects a session cookie from the cookie logger above.

FlagWhat it doesWhy it matters
HttpOnlyHides the cookie from JavaScript (document.cookie can't read it)Stops a cookie logger / XSS script from stealing session cookies
SecureSends the cookie only over encrypted HTTPSPrevents interception on the network
SameSiteControls whether the cookie is sent on cross-site requests (Strict/Lax/None)Limits cross-site sending — a key lever against third-party tracking and CSRF

If you run a site, the short version: session and login cookies should be HttpOnly and Secure, and you should understand your SameSite settings, because SameSite=None is what lets a cookie act in a third-party, cross-site context in the first place.

The deprecation myth: what really happened in 2025

For years the headline was "third-party cookies are going away." Google announced it would phase out third-party cookies in Chrome; the whole ad industry braced for a cookieless future. Then the story reversed — and a lot of published guides never updated. Here's the current, accurate picture.

THE DEPRECATION U-TURN 2020–24 Google plans to phase out 3P cookies Apr 2025 Google REVERSES: Chrome keeps 3P cookies, no prompt 2026 reality Safari/FF/Brave still block · Chrome doesn't · consent law: same Deprecation stalled in Chrome — but your consent obligations never depended on Chrome.

What actually changed

In April 2025, Google announced it would not roll out a standalone prompt to turn off third-party cookies in Chrome; the cookies stay, and by late 2025 Google began winding down parts of its Privacy Sandbox cookie-replacement effort. So in Chrome — still the majority browser — third-party cookies are not blocked by default in 2026.

But that's only Chrome. Safari has blocked third-party cookies by default since 2020 (via Intelligent Tracking Prevention), Firefox blocks and partitions them by default (Total Cookie Protection), and Brave blocks them outright. Together those browsers are a large minority of traffic — which is why, in practice, roughly a third of your visitors already arrive with third-party cookies blocked, regardless of what Chrome did.

Third-party cookie deprecation stalled. Your consent obligations did not. The law regulates the act of tracking — not the file that happens to do it.

The point everyone misses

Why deprecation never reduced your consent duties

Here's the part that matters for anyone running a website. Consent law is technology-neutral. Europe's ePrivacy rule governs storing or accessing any information on a user's device — cookie or not. California's CCPA and its wiretap statute, and the growing list of US state privacy laws, regulate the collection and sharing of personal information and the interception of communications — again, regardless of mechanism. First-party analytics, server-side tracking, pixels and fingerprinting all fall inside these rules. So even in a world with zero third-party cookies, you would still need consent before analytics and marketing trackers run. The cookie was never the legal trigger; the tracking is.

Should you block third-party cookies on your own site?

Most guides answer "should I block third-party cookies?" from the browsing visitor's chair (yes, for privacy — and the browser guide shows how). The more important question, if you run a website, is different: which cookies and trackers should you let fire, and when?

The site-owner rule of thumb

✓Strictly necessary — let them runLogin, cart and security cookies are exempt and shouldn't be gated behind consent.
◔Functional, analytics, targeting — hold until consentEverything in the other three categories should be blocked from firing until the visitor opts in — first-party analytics included, not just third-party ad cookies.
⚑The failure mode that mattersThe common (and risky) setup is a banner that asks for consent while the trackers have already loaded underneath it. A cookie banner that doesn't actually block anything is the pattern behind most tracker complaints.

Are third-party cookies bad? Is it safe to allow them?

For a visitor, third-party cookies aren't malware — but they're the main engine of cross-site tracking, which is why privacy-minded users and most browsers block them. For a site owner, the risk isn't the cookie itself; it's letting analytics, advertising or session-replay tools run before consent. In the US, that's the exact pattern plaintiffs target under the California Invasion of Privacy Act, where the wiretap provisions carry statutory damages of $5,000 per violation under Cal. Penal Code §637.2. "Are third-party cookies safe?" is the wrong question for a business. "Is anything tracking my visitors before they agreed?" is the right one — and it applies to first-party tools too.

This is where a prevention-first approach differs from a typical banner. ConsentPixel is built to block analytics, advertising and session-replay trackers — first- and third-party — from firing until a visitor genuinely consents, then release them and log the decision. It's the difference between asking for permission and actually withholding the data until you have it. You can see the current state of your own site with the privacy scanner, and read the litigation backdrop in the CIPA overview and the CIPA lawsuit tracker.

Key takeaways

  • First-party cookies are set by the site you're on; third-party cookies are set by embedded domains and enable cross-site tracking.
  • Every cookie sits on three axes: origin (1P/3P), purpose (necessary / functional / analytics / targeting), and lifespan (session / persistent).
  • Only strictly necessary cookies are generally exempt from consent. Functional, analytics and targeting all require opt-in in cookie-consent regimes.
  • Exotic types — super, flash and zombie cookies — exist to resist deletion; HttpOnly / Secure / SameSite flags harden cookies against theft and cross-site abuse.
  • Deprecation reversed: Chrome kept third-party cookies in 2025, but Safari, Firefox and Brave still block them — so a large share of traffic is already "cookieless."
  • Consent law is technology-neutral. Deprecation didn't shrink your obligations; the trigger is tracking, not the cookie file.
  • For site owners, the real risk is trackers firing before consent — first-party analytics included, not just third-party ad cookies.

Frequently asked questions

What is a third-party cookie in simple terms?

A third-party cookie is set by a domain other than the website you're visiting — usually an advertiser, analytics service or embedded widget. Because the same third party's code appears on many sites, its cookie can recognize you across all of them, which is how cross-site tracking and retargeting work.

What's the difference between first-party and third-party cookies?

First-party cookies are set by the site in your address bar and handle login, cart and preferences; they stay within that one site. Third-party cookies are set by other embedded domains and follow you across sites. Browsers trust first-party cookies by default; Safari, Firefox and Brave block third-party cookies.

Should I block third-party cookies?

For personal browsing, blocking third-party cookies improves privacy with little downside, and Safari, Firefox and Brave do it by default. If you run a website, the more useful goal is to block all non-essential trackers — first- and third-party — from firing until a visitor consents.

Are third-party cookies going away in 2026?

Not in Chrome. Google reversed its plan in April 2025 and Chrome still allows third-party cookies. However, Safari, Firefox and Brave continue to block them by default, so a large share of web traffic already blocks them regardless of Chrome's decision.

What are the four categories of cookies?

Strictly necessary (essential, exempt from consent), functional (preferences), analytics/performance (usage measurement), and targeting/advertising (cross-site marketing). Every category except strictly necessary generally requires opt-in consent before the cookies run.

What is a session cookie versus a persistent cookie?

A session cookie is deleted when you close your browser — it has no expiry date and is often used for logins and carts. A persistent cookie has an expiry date and survives restarts, so a site can remember you later. See our session vs persistent cookies guide for details.

What are super cookies, flash cookies and zombie cookies?

Super cookies track you at the network level or outside normal cookie storage, so clearing cookies doesn't remove them. Flash cookies were stored by the old Adobe Flash plugin. Zombie cookies recreate themselves after deletion by keeping a backup copy elsewhere. All three are designed to resist ordinary deletion.

What is an HttpOnly cookie?

An HttpOnly cookie can't be read by JavaScript, only sent to the server. It's a security setting that stops malicious scripts (a "cookie logger") from stealing session cookies. Login and session cookies should typically be marked both HttpOnly and Secure.

What is Cookiebot, and how does it relate to cookie types?

Cookiebot is a consent management platform that scans a site, categorizes the cookies it finds into the standard consent categories, and shows a banner. It's one of several CMPs in the market. ConsentPixel takes a prevention-first approach — blocking non-essential trackers from firing until consent rather than primarily cataloguing them — and is aimed at the US wiretap-litigation risk in particular. Which fits depends on your priorities.

Does deprecation mean I no longer need cookie consent?

No. Consent law is technology-neutral — it regulates storing or accessing information on a device and the collection of personal data, whatever the mechanism. First-party analytics, pixels, fingerprinting and server-side tracking all still require consent where applicable, so cutting third-party cookies alone doesn't remove your obligations.

The bottom line

Cookies aren't one thing — they're a small taxonomy, and once you can place any cookie on the three axes of origin, purpose and lifespan, the whole subject stops being confusing. First-party keeps sites working; third-party powers cross-site tracking. Four consent categories decide what needs permission. And the 2025 deprecation reversal changed the ad industry's plans, not your legal duties.

If you run a website, the practical takeaway is simple: what fires before a visitor consents is what matters — and that's true for first-party analytics as much as third-party ad cookies. That's the question worth answering about your own site today.

See what fires before consent — free

Scan your site and watch which cookies and trackers load before anyone clicks "Accept," mapped to CIPA, CCPA and GDPR exposure, in about 10 seconds. No extension, no code.

Run your free scan →
14-day free trial · no credit card required
CP

ConsentPixel Team

ConsentPixel — Privacy · Verified

ConsentPixel helps website owners and agencies control what fires on their pages — blocking third-party trackers and non-essential cookies until a visitor genuinely consents, honoring opt-out and Global Privacy Control signals, and logging each decision. This article is a plain-English educational guide, not legal advice.

A plain-English guide, not legal advice. Cookie and privacy rules — including CIPA, CCPA, GDPR and ePrivacy — vary by jurisdiction and change frequently. The $5,000 figure refers to statutory damages available under California Penal Code §637.2 and is included for context, not as a prediction about any specific site. Confirm your obligations with a qualified professional.

Scroll to Top