What a cookie's attributes say about a site
A cookie is more than a name: its attributes decide where it can travel. Without Secure it can leak over plain HTTP. Without HttpOnly, any script on the page — including a compromised ad or plugin — can read it, which is how session cookies get stolen. SameSite controls whether the cookie rides along on cross-site requests, the mechanism behind CSRF attacks. And a cookie that lives for years is a privacy problem in regions that cap consent at twelve months.
How to use the Cookie Checker
- Enter the page URL you want to inspect.
- Run the checker.
- Review each cookie's flags and the four audits.
- Fix missing flags in your server or framework's cookie settings and re-check.
Why it matters
- A session cookie without HttpOnly can be stolen by any injected script (XSS).
- Cookies without Secure can be captured on open Wi-Fi when a page is ever loaded over HTTP.
- Missing SameSite leaves login and form flows exposed to cross-site request forgery.
- Privacy regulators (GDPR, UK PECR) expect reasonable cookie lifetimes — years-long cookies draw complaints.
Key facts
- This checker sees server-set cookies; cookies created by JavaScript after the page loads need a browser-based scan.
- Browsers now default cookies without SameSite to Lax, but explicit is safer than assumed.
- Session cookies (no expiry) disappear when the browser closes; persistent ones carry an Expires or Max-Age.
- Cookie values are credentials in many cases — this tool deliberately never displays them.
Cookie Checker FAQ
Why does the checker show fewer cookies than my browser?
Because it reads the server's responses only. Consent banners, analytics and chat widgets often set their cookies with JavaScript after the page loads, and many set none until a visitor consents. The server-set list is the part your backend fully controls.
What is the most dangerous missing flag?
For a login or session cookie, HttpOnly. Without it, one cross-site scripting hole anywhere on the site hands attackers your users' sessions. Secure is a close second on any site that still answers plain HTTP anywhere.
Should every cookie have SameSite?
Ideally yes — Lax covers most sites, Strict for sensitive apps, and None (with Secure) only when a cookie must work cross-site, like an embedded widget. No attribute at all means you're relying on each browser's default.
How long should a cookie live?
As short as the job allows. Sessions: until the browser closes. Preferences and consent: up to twelve months is the common regulatory line. Multi-year cookies exist mostly in old analytics setups and are hard to justify now.
Does this store or send the cookie values anywhere?
No. Values are dropped on our server before anything is returned; the result lists names and attributes only, and nothing is saved.