Remembered age gates: how long to remember a visitor, and cookie and consent categories
Summary
A guide for alcohol brands whose age gate remembers returning visitors. It explains what European and UK regulators say about storing information on a visitor's device, the consent exceptions as the ICO, the CNIL and the Article 29 Working Party describe them, the durations those regulators mention, and why the classification of an age gate's remember-me cookie is a decision for the brand and its counsel.
Most alcohol brands don't want to ask the same adult their age on every page or every visit. So many age gates offer a remembered option: once a visitor answers, the site stores something on their device and skips the gate next time. That convenience raises two questions. How long should the gate remember someone? And where does that stored answer sit among the cookie and consent categories that privacy regulators describe?
This guide sets out what the UK's Information Commissioner's Office (ICO), France's CNIL, the European Data Protection Board (EDPB) and its predecessor, the Article 29 Working Party, have said about storing information on a visitor's device. None of the guidance we read deals with age gates directly. It deals with storage in general, so applying it to your gate is a judgment for you and your counsel. We don't claim that any age gate's cookie is exempt from consent.
What the rule covers
In the EU, the starting point is Article 5(3) of the ePrivacy Directive. The Article 29 Working Party's Opinion 04/2012 summarises the two exceptions to the consent requirement in that article:
- Criterion A: the storage or access is for the sole purpose of carrying out the transmission of a communication over a network.
- Criterion B: the cookie is strictly necessary for the provider of an information society service that the user has explicitly requested, so that the provider can deliver that service.
Everything else needs the user's consent. The rule isn't only about cookies. The EDPB's Guidelines 2/2023 say Article 5(3) also covers "similar technologies". They list information a browser keeps on the device, such as cookies and local storage, and say the article applies once that information, or anything derived from it, is accessed. Moving a remembered answer from a cookie into local storage doesn't take it outside the rule.
The EDPB guidelines are deliberately narrow. They explain what counts as storage and access, and they say they don't address when an operation falls within the consent exemptions. In the EDPB's words, that is for case-by-case analysis that takes account of each member state's national law and the guidance of national authorities. So the detail comes from national regulators.
In the United Kingdom, the equivalent rules are in the Privacy and Electronic Communications Regulations (PECR), which the ICO explains. In France, they are in article 82 of the loi Informatique et Libertés, which the CNIL explains.
The exceptions, as regulators describe them
The UK: five exceptions
The ICO's guidance on the exceptions lists five situations where storage or access needs no consent:
- Communication: the sole purpose is transmitting a communication.
- Strictly necessary: the storage is essential to provide the service the user requests.
- Statistical purposes: the sole purpose is collecting statistics about use of the service, with a view to improving it.
- Appearance: the sole purpose is adapting how the service looks or works in line with the user's preference.
- Emergency assistance: the sole purpose is locating the device to provide emergency help.
Several points in the ICO's guidance matter for a remembered age gate:
- Strictly necessary is judged from the user's side. The ICO says to assess it from the point of view of the user, not your own. Its example is advertising cookies: they may fund your service, but they aren't strictly necessary from the user's perspective.
- PECR's own examples. The ICO lists PECR's non-exhaustive examples of strictly necessary activities. They include security, preventing fraud or technical faults, authenticating the user, and recording information or selections the user makes on an online service.
- Other legal duties. The ICO says the exception can also cover storage used to meet other legislation that applies to you. But that applies only where the technology is the only reasonable and proportionate way to meet that requirement. If there's another way to meet it, the exception doesn't apply.
- Preferences. The ICO says session cookies that store a user's preference can rely on the strictly necessary exception if they aren't linked to a persistent identifier. Persistent cookies can sometimes qualify too, provided the user gets sufficient information in a prominent location. Its example is a consent-mechanism cookie that remembers cookie preferences "over a period of time (eg 90 days)".
- The appearance exception has conditions. You must give clear and comprehensive information about the purpose and a simple, free way to object.
- One purpose only. If a technology relied on under an exception is also used for something else, the ICO says the exception no longer applies and you need consent.
France: trackers the CNIL treats as exempt
The CNIL's 2020 guidelines give a non-exhaustive list of trackers that can be regarded as exempt from consent. They include:
- trackers that keep the user's choice about trackers;
- authentication trackers;
- shopping-basket trackers;
- trackers that personalise the user interface, such as language or layout, where that personalisation is an intrinsic and expected part of the service;
- load-balancing trackers;
- trackers that let paid sites limit free access to a sample of content;
- some audience-measurement trackers, under conditions.
The CNIL adds that using one tracker for several purposes, some of them outside the exemptions, means getting consent first. Its example is an authentication cookie that can't be reused for advertising without consent.
The Working Party on remembered preferences
Opinion 04/2012 describes "UI customization" cookies. These store a preference the user has explicitly asked the site to remember, for example by clicking a button or ticking a box. They aren't linked to a persistent identifier such as a username. Its view is that, without more information, a click can't be read as a wish to be remembered beyond the browser session or a few extra hours. So only session or short-term cookies of this kind are exempt. Adding prominent information, such as "uses cookies" next to the control, could support valid consent to remember the preference for longer. Its summary lists UI customization persistent cookies as exemptible "for the duration of a session (or slightly more)".
How long to remember a visitor
The guidance we read sets no period for remembering an age answer. It does give reference points for neighbouring questions, and brands often weigh these when choosing a period:
- The ICO on consent. In its page on managing consent, the ICO says neither PECR nor the UK GDPR sets a specific time limit on consent. It lists the factors that affect how long consent lasts: the scope of the original consent, user expectations, whether your use has changed, how often people visit, and how disruptive repeat requests would be. As a general guideline, it suggests six months as a suitable timeframe to request fresh consent. It also warns against prompting people repeatedly, especially after they've refused.
- The ICO's examples. One of the ICO's examples is a preference cookie kept for six months. Another is a consent-mechanism cookie kept for 90 days.
- The CNIL on consent choices. The CNIL's consolidated recommendation, published on 16 January 2026, says keeping users' choices, both consent and refusal, for six months is generally good practice.
- The CNIL on audience measurement. For exempt audience-measurement trackers, the same recommendation suggests a lifetime that allows meaningful comparison over time, such as 13 months, with no automatic extension on new visits. It suggests keeping the collected data for no more than 25 months, and reviewing both periods regularly.
- The Working Party on preferences. As above, it treats exempt UI-customization cookies as session-length or slightly longer, unless the user has been given information that supports consent for longer.
These periods were written for consent choices, analytics and interface preferences, not for age gates. They are context for a decision, not an answer to it. A shorter period means more repeat questions for adults. A longer one means the stored answer lasts longer on a shared or borrowed device. Both are worth discussing with counsel alongside your market's legal purchase age rules. For the design side of remembering visitors, see our guide to age gate UX copy and design.
Questions to settle with counsel
The classification of the gate's remember-me storage is the brand's to make, with its counsel. These questions tend to shape the answer:
- What is stored? A simple flag that the visitor passed, a date of birth, or something else? The ICO's preference examples assume information that isn't linked to a persistent identifier.
- Is it first-party and single-purpose? Both the ICO and the CNIL say an exception is lost if the same storage also serves analytics, advertising or anything else.
- Which category fits, if any? Some brands look at the strictly necessary exception, including the ICO's point about other legislation, and the ICO says that applies only where storage is the only reasonable and proportionate way. Others look at the preference or appearance categories, which carry their own information conditions, or rely on consent. We don't say which applies.
- How long does it last, and is it extended on each visit? Write the period down and give your reasons.
- What does your cookie notice say? Several of these exceptions depend on clear information being given to the user.
- Which markets? The EDPB points to national law and national authorities, so the answer can differ between countries.
Where General Spirit fits
General Spirit is a JavaScript age gate that installs with a script tag, with no proxy or DNS changes. On Shopify it installs as a theme snippet. It offers date-of-birth, yes/no and remembered methods, has legal ages for every country built in, always lets search crawlers through, and lets brands allow AI agents, require them to attest, or block them. It doesn't check ID.
The remembered method exists so adults aren't asked on every visit. How that storage is classified on your site, whether it needs consent, and how long it lasts are decisions for you and your counsel. We don't claim a duration for it here, and we don't claim it's exempt. For a wider look at how gates work, see age gates for alcohol brands, our guide to choosing an age gate, and the age affirmation glossary entry.
This article is general information, not legal advice. Check your obligations with counsel in each market you sell into.
FAQ
How long should an age gate remember a visitor?
None of the regulator guidance we read sets a period for age gates. The ICO says UK law sets no fixed time limit on consent and suggests six months as a general guideline before asking again after a refusal. The CNIL calls keeping consent choices for six months good practice. Those figures are about consent choices, not age answers, so settle your own period with counsel.
Is an age gate's remember-me cookie strictly necessary?
That's for the brand to decide with its counsel. The ICO says strictly necessary is judged from the user's point of view, and both the ICO and the CNIL say a cookie used for more than one purpose loses the exception. We don't claim any age gate cookie is exempt.
Does using local storage instead of a cookie change anything?
Not by itself. The EDPB says Article 5(3) of the ePrivacy Directive isn't limited to cookies and also covers similar technologies, including information kept in the browser, once that information or anything derived from it is accessed.
Does General Spirit decide the cookie category or the duration for me?
No. General Spirit offers a remembered method, so returning visitors aren't asked every time. How that storage is classified on your site, and how long it lasts, is for you and your counsel to settle. This article doesn't state a duration for General Spirit.