Skip to content

How long should cookies live?

Best practices1 min readFixes check cookie-lifetime

Consent-based cookies should expire within 13 months. Set Max-Age on your own cookies and the expiry option on analytics and ad tags.

Step by step, with screenshots: A cookie banner that passes: reject button, lifetime, consent mode →

Check your own site

Runs this check and the other 186, free, in about 45 seconds.

What a passing site looks like

  • Cookie lifetime: passesinfo onlyeffort S

Filed under Best practices. Copy is generated from the same catalogue that scores every report, so what you read here is what the report says.