Skip to main content
>_devtools

Set-Cookie Builder

Build and validate a Set-Cookie header with expiry, domain, path, security flags, SameSite and Partitioned attributes.

What this does

Build a Set-Cookie header by entering a cookie name and value, then choosing expiry, scope and protection attributes. The result and validation update as fields change.

Example

Name: session_id
Value: abc123
Set-Cookie: session_id=abc123; Path=/; Secure; HttpOnly; SameSite=Lax

Limits and behavior

  • A cookie name is required before the header can be copied.
  • SameSite=None requires Secure; prefix and attribute combinations are checked.