An online markdown blog and knowledge repository.
Other areas of this repository have notes about cookies, and they are referenced below. This page will be dedicated to specific considerations and technical details around cookies.
What are they?
What problem do they solve?
How do they work?
What problems exist with partitioned cookies?
secure
boolean flag set. If this is not done, the partitioned cookie is ignored.How are these implemented in code/frameworks?
.
are ignored in domain names.AKA "Partitioned Cookies"
Protections and Benefits:
What about CHIPS?
new.same-domain.tld
will actually match same-domain.tld
.Technical Details:
partitioned
and secure
flags, if the __Host
prefix is also set, this binds the cookie to the current Domain (or subdomain).secure
flag.Host
, and partition
. This means a single object containing both keys is used as the cookie Key in memory. Another 3rd party sub-domain would not match the one that is part of the object that is now the partitioned cookie key, so it is not accessible to that sub-domain to read, and a different cookies would have to be set.Example HTTP Set-Cookie statement:
Set-Cookie: __Host-{domain}={value}; SameSite=None; Secure; Path=/; Partitioned;
Compatible Browsers:
Incompatible Browsers:
These are (slowly) being phased out but still very much in use.
Return to ContEd Index
Return to Root README