Partitioned cookies (CHIPS)

Partitioned cookies are cookies with the Partitioned attribute. The browser keeps a separate copy of each one for each top-level site. CHIPS means Cookies Having Independent Partitioned State.

Cookie attribute

Also called CHIPS, Partitioned

Updated

On this page

How it works

The browser stores a Partitioned cookie with two keys: the origin that set it and the site of the top-level page. The top-level site includes the scheme. So the widget on https://shop.example cannot read the cookie that it set on https://news.example.

The cookie cannot follow the user from site to site. MDN lists CHIPS as a way to keep state in a frame when browsers limit third-party cookies. MDN says CHIPS works in the latest browsers since December 2025.

Rules

  • A Partitioned cookie must have Secure.
  • Use SameSite=None so the browser sends the cookie in a cross-site frame.
  • The __Host- prefix keeps the cookie on one host. It needs Path=/ and no Domain. MDN recommends it but does not require it.
  • Subdomains of the same top-level site share the partition. A widget on support.shop.example and checkout.shop.example reads the same cookie.

Firefox also partitions third-party cookies by default. CHIPS is the opt-in way, and MDN recommends it for the most compatible partitioned cookies.

Example

HTTP response header from https://widget.example
Set-Cookie: __Host-session=34d8g; SameSite=None; Secure; Path=/; Partitioned

On https://shop.example and on https://news.example, the widget gets two different cookies with this name.

How to set it

Add Partitioned and Secure to the cookie. Use the __Host- prefix unless subdomains must share the cookie.

Set-Cookie: __Host-session=34d8g; SameSite=None; Secure; Path=/; Partitioned

A partitioned cookie does not share a login with your main site. The user signs in once for each top-level site.

Learn more

Sources

Know before you embed.

Free, no sign-up, nothing stored. Paste a URL and get a verdict, a live preview, and the fix.