Set-Cookie parser
Parse Set-Cookie lines into attributes and warn about invalid combinations.
What it does, how to use it, and questions
What it does
Set-Cookie carries a name/value pair plus attributes such as Secure, HttpOnly, SameSite, Partitioned, Max-Age and Expires.
Prefixes __Host- and __Secure- impose extra rules. This parser lists attributes and warns on combinations browsers reject.
How to use it
- Paste one or more Set-Cookie lines.
- Read the attribute table and warnings.
- Mask values when sharing screenshots.
Things to watch for
- Multiple Set-Cookie headers must stay separate; joining with commas breaks cookies that contain commas.
- Expires uses a preferred HTTP-date; invalid dates are flagged.
Questions
- What does SameSite=None require?
- It must also be Secure on modern browsers.
- What is Partitioned?
- A CHIPS cookie bound to the top-level site. It has its own requirements alongside Secure.
- Does this set a cookie in my browser?
- No. It only parses text.
- Are values uploaded?
- No.