PrivacyQuick

GDPR & ePrivacy

How long does cookie consent last?

Neither the GDPR nor the ePrivacy Directive puts a number on it. Regulators expect you to refresh consent at reasonable intervals, and France's CNIL treats six months as a sensible period to keep a visitor's choice, but you must also ask again whenever what you're asking for changes.

  • Plain English
  • Written for website owners
  • Free to read

There's no legal expiry date for cookie consent. The GDPR and the ePrivacy Directive don't set one, and the European Data Protection Board leaves it to context. What regulators do expect is that consent is refreshed at reasonable intervals and that it covers exactly what you're doing now. In practice, most sites keep a visitor's choice for somewhere between six and twelve months, then ask again. France's CNIL treats six months as an appropriate period. Separately from any time limit, you need fresh consent as soon as you add a purpose, a category or anything else the visitor didn't agree to.

The ePrivacy Directive (Art. 5(3)) requires consent before you store or read non-essential information on a device. It borrows the definition of consent from the GDPR, which requires consent to be freely given, specific, informed and unambiguous (Art. 4(11)), withdrawable at any time (Art. 7(3)) and provable (Art. 7(1)).

None of those provisions mention a time limit. The EDPB's consent guidelines (05/2020) say how long consent lasts depends on the context, the scope of the original consent and what the person would expect. They recommend, as best practice, refreshing consent at appropriate intervals. Consent also stops covering what you do once your processing drifts beyond what you described.

So the question isn't "when does consent legally expire?" but "how long can I reasonably rely on a choice before it goes stale?" Regulators have given some practical answers.

What regulators recommend

The clearest guidance comes from the CNIL. Its 2020 guidelines and recommendation on cookies say a site should keep the visitor's choice, whether acceptance or refusal, for a period long enough that people aren't asked again on every visit, and they treat six months as an appropriate period before asking again. The CNIL also warns that asking repeatedly can wear people down until they accept, which undermines whether that consent was freely given. See our guide to the CNIL's cookie rules for the wider context.

Other regulators are less specific. Some have published figures in their own guidance and others simply say "regularly". If most of your visitors are in one country, read that regulator's current cookie guidance before you pick a number.

A common, defensible setup is to keep each choice for six months for French visitors and no more than twelve or thirteen months elsewhere, to treat refusals exactly like acceptances, and to re-ask immediately whenever the categories or purposes change.

Three clocks people mix up

"How long does consent last?" can mean three different things. Keep them apart, because each has its own rules.

ClockWhat it measuresWhat limits it
Consent validityHow long you rely on the visitor's decision before asking againRegulator guidance, plus any change to what you're asking for
Consent record storageHow long the stored choice survives in the browserThe expiry you set, browser caps and the visitor clearing their data
Tracking cookie lifespanHow long each analytics or marketing cookie stays on the deviceThe vendor's default, your configuration and browser caps

The second clock is often shorter than you planned. Chrome caps cookie expiry at 400 days, whatever the site requests. Safari's Intelligent Tracking Prevention limits cookies set by JavaScript to seven days, and deletes other script-writable storage such as localStorage after seven days without the visitor interacting with the site. So a Safari visitor who returns after two weeks may see your banner again even though your intended period hasn't passed. That's not a compliance problem. It's just the browser forgetting. Our guide to cookie lifespan limits covers the browser caps in detail.

The third clock matters too. Consent obtained today doesn't justify a marketing cookie that lives for two years. The CNIL, for example, limits cookies that rely on its audience-measurement exemption to 13 months and the data they collect to 25 months. Check what lifespans your tags set, shorten them where your tools allow, and list them in your cookie policy. The CJEU's Planet49 judgment (C-673/17, 2019) confirmed that cookie duration is part of the information visitors must get.

When you must ask again, whatever the date

Time is only one trigger. Consent is specific, so it covers the purposes and categories the visitor saw, and nothing more. Ask again when:

  • You add a category. If you only had analytics and now add marketing, nobody has agreed to marketing yet.
  • A category's purpose changes materially. Moving from basic traffic statistics to session replay is a different purpose, even if both sit under "analytics".
  • You add partners that you name in the banner. If your banner lists vendors, a new vendor means the old list was incomplete.
  • You change the banner or policy wording about purposes. People agreed to the text they saw.
  • The visitor withdraws consent. Withdrawal ends the old consent. Don't re-prompt straight away, since you already know their answer.

Changes that don't affect what the visitor agreed to, such as a new button color, a typo fix or adding a strictly necessary cookie, don't need fresh consent. The cookie that stores the consent decision is itself strictly necessary, which is why it can be set without asking (see what counts as strictly necessary).

The reliable way to handle both triggers is to store three things with every choice: what was chosen, when, and which version of the banner it was given against. On each page load, compare them with the current settings.

// Example stored value (cookie or localStorage)
{
  "v": 7,                      // banner/config version
  "ts": "2026-11-07T10:14:00Z", // when the choice was made
  "analytics": true,
  "marketing": false
}

// On page load
const MAX_AGE_DAYS = 180;
const stored = readConsent();
const ageDays = stored ? (Date.now() - Date.parse(stored.ts)) / 86400000 : Infinity;

if (!stored || stored.v !== CURRENT_VERSION || ageDays > MAX_AGE_DAYS) {
  blockNonEssential();
  showBanner();
} else {
  applyConsent(stored);
}

Bump the version whenever you add a category, change a purpose or edit the wording. Keep the timestamp from the visitor's original choice. Don't refresh it every time they visit, or consent would never expire.

If you use a consent management platform, check how it handles this. PrivacyQuick, for example, publishes a new banner version when your categories or banner text change, so visitors are asked again and the consent log shows which version each choice was made against.

Re-asking without nagging

Regulators care as much about asking too often as about asking too rarely. The EDPB cookie banner taskforce and several national regulators have criticized banners that keep reappearing after a refusal, because repeated prompts push people toward "Accept". A few rules keep you on the right side:

  • Store a refusal with the same lifespan as an acceptance.
  • Don't show the banner again on the next page or the next visit after someone declines.
  • Don't use the expiry as an excuse to redesign the banner so that accepting is easier than refusing.
  • Keep the "change your choices" link or button available at all times, so nobody has to wait for the banner to come back.

For more on designs regulators reject, see our guide to cookie banner dark patterns.

Art. 7(1) GDPR says you must be able to show that consent was given. That means your consent records need to last at least as long as the consent you rely on, plus a margin for complaints or audits that come later. If you re-ask every six months but delete logs after three, you can't prove the second half of that period.

A useful log records an anonymous consent ID, the action, the categories, the banner version, the time and, if relevant, the language and country. It doesn't need IP addresses. For what to record and for how long, see how to keep proof of cookie consent.

Next steps

  1. Choose a re-consent period (six months is a cautious default) and write it in your cookie policy.
  2. Make sure refusals are stored for the same period as acceptances.
  3. Add a version number to your consent setup, and bump it whenever categories, purposes or wording change.
  4. Check the lifespans of your analytics and marketing cookies, and shorten any that are longer than they need to be.
  5. Keep a permanent "Cookie settings" link in your footer so people can change their minds at any time.
  6. Decide which site changes should trigger a new request before the period runs out; see when to ask visitors again.
  7. Run a free cookie scan to see which cookies your site sets and how long each one lives.

Frequently asked questions

Can I keep consent forever if the visitor never changes it?

Not safely. Regulators expect consent to be refreshed at appropriate intervals, and browsers will usually delete the stored choice long before 'forever' anyway. Pick a fixed period, document it and re-ask when it runs out.

Should a declined choice expire at the same time as an accepted one?

Yes, treat them the same. Re-asking people who said no more often than people who said yes is the kind of pressure regulators object to, so store refusals for at least as long as acceptances.

Does consent expire when the visitor clears their cookies?

In practice, yes. The stored choice is gone, so your site can't tell whether the visitor agreed and must show the banner again and block non-essential scripts until they decide.

Do I need to ask again if I only change the banner design?

Not for purely visual changes like colors or fonts. If you change what the banner says about purposes, categories or partners, the earlier consent no longer matches what people saw, so ask again.

Check your own website in 30 seconds

Our free scanner lists every cookie and tracker your site sets, sorted into categories, before you add a banner.

Run a free cookie scan Start free

This guide is general information, not legal advice. Laws and regulator guidance change; check the current rules for your situation or ask a lawyer.