- Home
- Web & auth
- Cookie analyzer
Set-Cookie analyzer
Break down Set-Cookie headers into attributes, expiry dates, prefix rules, and warnings.
Set-Cookie headers
Loading editor…
Paste Set-Cookie headers to see each cookie's settings, expiry, size, and any problems.
Max-Age beats Expires
Max-Age and Expires both set how long a cookie lives. When a header carries both, Max-Age wins, as RFC 6265 specifies. Max-Age counts seconds from the moment the browser receives the header, so Max-Age=3600 lasts one hour. Expires takes an absolute date and time. A cookie with neither attribute is a session cookie, which normally ends when the browser closes.
Prefix rules as a checklist
Browsers refuse a prefixed cookie that breaks these rules, so the Set-Cookie line has no effect.
| __Secure-name | the Secure attribute must be present |
| __Host-name | Secure, Path=/, and no Domain attribute |
Common mistakes
- SameSite=None without Secure, which current browsers refuse.
- Domain on a __Host- cookie, which the prefix forbids.
- An Expires date in the past, which deletes the cookie at once.
More web & auth tools
All web & auth toolsWas this tool useful?