HTTP

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; HttpOnly
Plain 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 Value

The cookie identifier.
The cookie payload.
ref →
Omit to restrict to the exact host (most secure).
URL path prefix where the cookie is sent.

Attributes

ref →
Time until expiry. Overrides Expires.
ref →
Absolute expiry date.
ref →
Controls cross-site sending behavior.

Cookie Reference

Browse all cookie attributes:Secure,HttpOnly,SameSite,Max-Age,Expires,Domain,Path. See also the Cookie Security guide andSet-Cookie header reference.