Tools
Set-Cookie Builder
Compose a Set-Cookie header visually. Toggle security attributes, set expiry,
and see the generated header with a plain-English explanation of each attribute.
Generated Header
Set-Cookie: session_id=abc123; Path=/; SameSite=Lax; HttpOnlyPlain English
🍪 Sets a cookie named "session_id" with value "abc123".
🔒 HttpOnly — JavaScript cannot access this cookie (XSS protection).
🛡️ SameSite=Lax — sent on top-level navigations but not on cross-site subrequests.
🔄 Session cookie — deleted when the browser closes.
Cookie Reference
Browse all cookie attributes: Secure, HttpOnly, SameSite, Max-Age, Expires, Domain, Path. See also the Cookie Security guide and Set-Cookie header reference.