Skip to main content
sus.botdocs
  • SEO
  • AI
  • QA
  • Privacy
  • Accessibility
  • Security
  1. Docs
  2. Privacy
  3. Stated retention and real lifetimes differ
  4. Cookies and stored identifiers live longer than the site says

Privacy finding

Cookies and stored identifiers live longer than the site says

Privacy Warning Severity: Medium

Part of the audit Stated retention and real lifetimes differ. Finding id: privacy.retentionVsStated.

What it costs you

A cookie or stored identifier that outlives the published period keeps recognising visitors after you said you would stop.

What to do

Shorten the lifetime to the stated period, or state the real one.

What it checks

  • Cookie lasts longer than stated
  • Session cookie is actually persistent
  • Stored identifier never expires

How to fix it

Give the stored identifier an end date

  1. Store a date with the value and delete both when the period is over.
  2. Or list the value in the cookie list with its real lifetime.

How to check: Crawl the site again. The item no longer appears in this rule.

Set the expiry to the stated period

  1. Cookie set by your own code: set its expiry to the stated period.
  2. Cookie set by a vendor script: look for a lifetime setting in that tool. If there is none, state the real period in the cookie list.

How to check: Crawl the site again. The item no longer appears in this rule.

A real case

A study of the cookie banners of almost 30,000 websites named misleading expiration times as one of six new kinds of violation, and found at least one potential violation on 94.7% of the sites.

Source: Bollinger and others, USENIX Security 2022

Thresholds

Thresholds for Cookies and stored identifiers live longer than the site says
NameDefaultMeaning
tolerance_days1Days a cookie may outlive the stated period before it is reported.

How to verify by hand

No outside source needed.

What this relies on

The stated period is the promise.

  • All audits
  • About sus.bot
  • Open the app
  • Contact support