Privacy & Compliance

Cookie Jar & Set-Cookie Lab

All tools

Audit cookie flags and lifetimes from a cookie jar or Set-Cookie headers, with values left out of the report.

How it works

Four simple steps

1

Paste cookies

Use a Netscape jar, Set-Cookie lines, or both.

2

Read the risks

Missing flags, long lifetimes and tracking names are listed.

3

Share the report

The JSON omits cookie values by design.

4

Fix and recheck

Update your app headers and paste the new ones.

Cookie Jar & Set-Cookie Lab

About Cookie Jar & Set-Cookie Lab

A penetration test report says your session cookie is missing a flag, and you want to see every cookie the app sets before you fix just the one. You have a curl cookie jar and some response headers copied from devtools. Cookie Jar Lab reads both.

Paste lines in either format. Netscape cookie jar lines are tab-separated with seven fields (domain, subdomain flag, path, secure, expiry, name, value). Set-Cookie lines can start with Set-Cookie: or be a bare name=value; attribute list. The report lists each cookie's name, domain, path, Secure, HttpOnly and SameSite values, its source format and any risks. Risks flagged are: an auth-like name (containing session, auth, token or sid) without Secure; a session or auth cookie set without HttpOnly; Max-Age over 30 days; an expiry more than a year away; names that look like analytics or tracking, such as _ga or utm_; and Set-Cookie lines with no SameSite.

Cookie values are deliberately left out of the report so you can share it. Two format quirks are worth knowing. Lines starting with # are skipped as comments, and curl writes HttpOnly cookies as #HttpOnly_ lines, so remove that prefix if you want them analyzed. HttpOnly and SameSite cannot be expressed in Netscape format, so only Set-Cookie input is checked for them.

After fixing cookies, review the rest of your response headers with the security headers generator, and check cross-origin rules with the CORS generator. Analysis runs in your browser; session cookies are credentials, so paste them only into tools that keep them local.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

curl marks HttpOnly cookies by starting the line with #HttpOnly_, and the tool skips every line that begins with #. Delete the #HttpOnly_ prefix from those lines to include them.

View more FAQs

Related tools

View all

PII Detector

Scan text for emails, phones, and card-like patterns locally.

Open

On-Device NER Redactor

Redact PII with regex plus optional on-device NER - nothing uploaded.

Open

SBOM Privacy Studio

Inspect CycloneDX/SPDX SBOMs locally with optional OSV package lookups.

Open

Image OCR

Extract text from images with Tesseract.js in your browser.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools