Your files stay on your device

# Set-Cookie analyzer

Break down Set-Cookie headers into attributes, expiry dates, prefix rules, and warnings.
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

- [HTTP header parser](/web/headers)
- [JWT decoder](/web/jwt)
[All web & auth tools](/web)

Was this tool useful?
YesNo

---

Canonical HTML: https://nutter.tools/web/cookie
Markdown version: https://nutter.tools/web/cookie.md
Plain-text version: https://nutter.tools/web/cookie.txt
Agent index: https://nutter.tools/llms.txt

