Partitioned cookies are cookies that a browser stores in a separate jar for each top-level site, so an embedded service receives a different cookie on every website that embeds it. The standardized opt-in mechanism is called CHIPS (Cookies Having Independent Partitioned State), and it is activated by adding the Partitioned attribute to a cookie. Within Cookies & consent, the concept matters because it preserves legitimate embedded functionality while removing the cross-site identifier that classic third-party cookies provide.
The idea sits between the first-party cookie and the third-party cookie. A partitioned cookie is still set in a third-party context, but it can no longer link a person’s activity across unrelated sites, which changes both the technical risk profile and the way privacy teams classify it in a cookie policy.
How partitioned cookies are keyed and stored
A partitioned cookie is stored under a double key: the host that set the cookie and the partition key, which is the top-level site shown in the address bar. In Chromium-based browsers the partition key is the scheme plus registrable domain (for example https and example.com), and recent versions add a cross-site ancestor bit that separates frames embedded through a cross-site chain from same-site embeds.
When a chat widget from widget.example is embedded on shop-a.com and on news-b.com, the browser keeps two independent cookie jars. The widget can remember a session on shop-a.com, yet on news-b.com it starts with an empty jar. A classic unpartitioned cookie, by contrast, would be shared across both embeds and would let the widget recognize the same browser on both sites.
The table below lists the cookie attributes that a valid CHIPS cookie must or should carry, together with the reason for each requirement.
| Attribute | Requirement | Purpose |
|---|---|---|
| Partitioned | Required | Opts the cookie into the per-site partition |
| Secure | Required | Restricts the cookie to HTTPS connections |
| SameSite=None | Required for cross-site use | Allows sending in third-party requests |
| __Host- prefix | Recommended | Binds the cookie to one host and path / |
| Path=/ | Required with __Host- prefix | Prevents path-scoped variants |
Partitioned cookies compared with other cookie types
Partitioned cookies are best understood by comparing who can read the cookie and where it can be reused. The decisive difference from a third-party cookie is not where the cookie is set but whether the same value can travel between unrelated top-level sites.
| Cookie type | Set by | Shared across top-level sites | Tracking potential |
|---|---|---|---|
| First-party cookie | The visited site | No | Limited to one site |
| Third-party cookie | An embedded domain | Yes | High, enables cross-site profiles |
| Partitioned cookie | An embedded domain | No, one jar per site | Low for cross-site linking |
| Session cookie | Either party | Depends on partitioning | Depends on context |
| Persistent cookie | Either party | Depends on partitioning | Grows with lifetime |
Session cookie and persistent cookie describe lifetime, not context, so a partitioned cookie can be either. Partitioning also differs from browser-wide state partitioning, such as the approach Firefox applies to most third-party storage by default. CHIPS is an explicit opt-in by the developer, whereas browser-level partitioning is imposed on all embedded storage regardless of what the site requests.
Legitimate uses and limits of CHIPS
CHIPS was designed for embedded services that need state but have no reason to follow users between sites. Typical examples include customer support chat, embedded maps that remember a chosen view, payment and checkout frames, third-party content delivery with load balancing, and headless commerce or SaaS dashboards embedded in a customer portal.
The following decision table helps a developer or privacy engineer decide whether the Partitioned attribute fits a given scenario.
| Scenario | Recommended choice | Reason |
|---|---|---|
| Embedded chat on many client sites | Partitioned cookie | Session only needs to persist per site |
| Single sign-on across sister domains | Storage Access API or federation | Needs a shared identity by design |
| Cross-site advertising measurement | Not suitable | Partitioning blocks cross-site joins |
| Payment iframe during checkout | Partitioned cookie | State is tied to one merchant |
| Site’s own analytics | First-party cookie | No third-party context is involved |
Browsers apply storage limits to partitioned cookies. Chromium-based browsers cap the total size of cookies an embedded site may store within one partition at roughly 10 KB per embedded site, which discourages using partitioned jars as large data stores. Support also varies by engine and version, so production code should feature-detect behavior and degrade gracefully rather than assume uniform handling.
Consent and legal status of partitioned cookies
A partitioned cookie is still a cookie in legal terms. Under the ePrivacy Directive, storing or reading information on a user’s device requires prior consent unless the storage is strictly necessary for a service the user explicitly requested. Partitioning reduces tracking capability, but it does not by itself create an exemption from consent.
In practice, a partitioned cookie used to keep a support chat session alive may qualify as strictly necessary, while a partitioned cookie used for analytics or personalization generally does not. A consent management platform (CMP) should therefore classify partitioned cookies by purpose, not by attribute, and the cookie policy should list them with their domain, purpose and retention like any other cookie.
The table below summarizes typical classification outcomes for common partitioned use cases.
| Purpose | Likely category | Consent needed under ePrivacy |
|---|---|---|
| Chat session state | Strictly necessary | Usually no |
| Load balancing for embedded content | Strictly necessary | Usually no |
| Embedded widget analytics | Statistics | Yes |
| Per-site ad frequency capping | Marketing | Yes |
| Remembered widget preferences | Functional | Depends on national guidance |
Common mistakes and misconceptions
Several recurring errors appear when teams adopt partitioned cookies, and most of them lead either to silent breakage or to an inaccurate privacy disclosure.
- Omitting the Secure attribute, which causes browsers to reject the cookie entirely.
- Assuming a partitioned cookie is automatically exempt from consent, which confuses technical design with legal classification.
- Expecting the cookie to follow a user across client sites, which partitioning deliberately prevents.
- Setting the same cookie name both partitioned and unpartitioned, which creates two coexisting values and confusing server logic.
- Treating partitioning as protection against device fingerprinting, which it does not address.
Partitioning also leaves first-party tracking untouched. A site can still profile its own visitors with first-party cookies, and techniques such as bounce tracking or link decoration can move identifiers between sites outside the cookie jar. Partitioned cookies narrow one channel; they do not eliminate tracking as a whole.
In plain words
Imagine a coat-check service that works inside many different restaurants. With ordinary third-party cookies, the service gives you one ticket that works in every restaurant, so it can see everywhere you eat. With partitioned cookies, each restaurant gets its own separate ticket book.
The service can still return your coat in the restaurant where you left it, but it cannot connect your visits between restaurants. That is the whole point: embedded tools keep working, while cross-site tracking stops.
A real-world example
A software company provides an embedded customer support chat that runs on about 400 client websites. After a major browser restricted third-party cookies in testing, visitors lost their chat history every time they reloaded a page, because the widget’s unpartitioned session cookie was blocked in the third-party context.
The engineering team changed the session cookie to use the __Host- prefix with Secure, Path=/, SameSite=None and the Partitioned attribute. Each client site now receives its own session jar, so a visitor on one retailer’s site keeps the conversation across reloads, while the same visitor on another client site starts fresh.
The privacy team reviewed the change and kept the chat cookie in the strictly necessary category, since it only supports a service the visitor actively opened. Usage analytics inside the widget stayed behind consent. The outcome was a restored chat experience without reintroducing a cross-site identifier.