Cookie Expiry Auditor (13-Month Limit Check)
Reads Max-Age and Expires from each cookie, converts to days and months and flags the ones over your limit.
Use the tool
Why this tool exists
The French CNIL recommends keeping the lifetime of consent-exempt cookies, such as audience measurement, to about 13 months, and asking for consent again after about six months. Other authorities have their own views, and browsers cap cookie lifetime too.
Paste your Set-Cookie headers and the tool works out each cookie's lifetime from a reference date, using Max-Age first as browsers do. The 13-month figure is guidance, and it came from secondary sources here, so check the CNIL text if you rely on it. You can change the limit.
How to use it
- Paste Set-Cookie headers.
- Set the limit in months and an optional reference date.
- Run the tool and read which cookies are over.
- Shorten the lifetime or justify it in your policy.
Frequently asked questions
Which wins, Max-Age or Expires?
Max-Age wins when both are present, as in RFC 6265.
Is 13 months a legal limit?
No. It is CNIL guidance for certain cookies. Other regulators differ.
What about cookies set by JavaScript?
Check document.cookie in the console or the browser cookie list.