OneFirewall Alliance

Secure Cookie Analyzer

Paste Set-Cookie headers and get a full security analysis of each attribute

Paste one or more Set-Cookie response headers and the analyzer checks each cookie for the attributes that protect sessions from theft and cross-site attacks: Secure, HttpOnly, SameSite, scope and lifetime. Each finding comes with a plain-language explanation and a recommended fix. More free security tools.

Paste one or more Set-Cookie header values (one per line). These are never sent anywhere — analysis runs entirely in your browser.
Load sample:
How It Works & Why It Matters

A session cookie without the right attributes is exploitable even if the application logic is otherwise sound. Secure stops it being sent over plain HTTP, HttpOnly stops JavaScript (and therefore a successful XSS payload) from reading it, and SameSite controls whether it's sent on cross-site requests — the primary modern defence against CSRF.

This analyzer parses one or more Set-Cookie headers and checks each cookie against those attributes plus scope (Domain and Path, which control how broadly the cookie is shared) and lifetime (a session cookie with no Expires/Max-Age versus a persistent one that outlives the user's intent to stay logged in). Each finding explains the concrete attack it enables and the attribute that closes it.

Need a complete web application security assessment including session management?

If you like this tool, Speak with OneFirewall

What the Secure Cookie Analyzer does

Session cookies are the keys to a logged-in account. If a cookie is missing the Secure flag it can travel over plain HTTP; without HttpOnly, injected JavaScript can read it; and a weak SameSite value leaves forms open to cross-site request forgery.

The analyzer reads each Set-Cookie header the way a browser does and explains, attribute by attribute, what is protected and what is not.

How to use it

  1. Copy the headers. Open your browser's developer tools, select a response from your site in the Network tab and copy its Set-Cookie headers.
  2. Paste and analyse. Paste one or more Set-Cookie lines into the analyzer. Each cookie is checked for Secure, HttpOnly, SameSite, Domain, Path and expiry.
  3. Apply the fixes. Follow the recommended fix for each finding in your application or web server configuration, then re-test.

Frequently asked questions

Which cookie flags matter most for security?

For session cookies: Secure (HTTPS only), HttpOnly (not readable by JavaScript) and SameSite=Lax or Strict (limits cross-site sending). A narrow Domain and Path and a sensible expiry reduce exposure further.

What does SameSite=None require?

Browsers only accept SameSite=None when the cookie also has the Secure flag. Use it only for cookies that genuinely must be sent in cross-site contexts.

Are my cookies sent anywhere?

No. The analysis runs in your browser on the text you paste.

More free tools: OneFirewall Free Tools · Terms explained: Glossary