Sub topic 9
Withdrawal, refusal and re-prompting
This chapter assumes you already know how a banner collects consent and how tags are blocked until consent is given. It covers what happens afterwards: the visitor says no, changes their mind, or is asked again. These steps are where many sites that collect consent correctly at first still fail an audit.
The rule behind all three
Article 7(3) of the GDPR and the UK GDPR says a person has the right to withdraw consent at any time. Withdrawal must be as easy as giving consent. The ePrivacy Directive (Article 5(3)) and the UK PECR (regulation 6) rely on the GDPR definition of consent. So the same standard applies to cookies, pixels and similar technologies.
Three consequences follow:
- Refusal is a valid outcome. A visitor who says no, or who ignores the banner, has not consented.
- Withdrawal must be reachable. It cannot be harder to find or use than the original "accept".
- Asking again must be justified. Repeated prompts that wear a visitor down undermine the claim that consent was freely given.
Refusal
The European Data Protection Board (EDPB) guidelines on consent and the ICO's guidance on cookies both expect refusal to be as easy as acceptance. In practice:
- If the first layer has an "Accept all" button, it also needs a "Reject all" button of equal prominence, or an equally easy equivalent. Several national regulators, including the French CNIL, have fined companies for hiding refusal behind a second screen.
- Closing the banner without choosing must not be treated as consent. Treat it as no choice, and keep marketing tags blocked.
- Scrolling, continuing to browse or pre-ticked boxes are not valid consent actions.
- Refusing marketing must not break the site. Regulators have generally treated "cookie walls" (access only if you accept tracking) as a problem. The EDPB's position is that access to a service cannot be made conditional on consent to processing that is not needed for it. Some regulators allow narrow exceptions, so check the current guidance for the countries you target.
Refusal also needs a technical meaning. When the visitor refuses, your code must not load marketing scripts and must not set marketing cookies. It should also store the refusal, so you can remember it and avoid asking again too soon.
Withdrawal
A visitor who consented earlier must be able to change their mind. A good withdrawal mechanism has these parts:
- A persistent entry point. A link or button such as "Cookie settings" in the footer of every page, or a small floating icon. If it is only in the privacy policy, it is too hard to find.
- The same interface. Reopen the same preference centre used for consent, showing the current choices. The visitor then toggles marketing off and saves.
- Immediate effect. Stop loading marketing tags and delete the marketing cookies your own domain set.
- A record of the change. Store the new choice with a timestamp, so you can show when the visitor withdrew.
- Downstream effect. Tell vendors where the vendor's own tools allow it, and stop sending the visitor's data to them.
Withdrawal does not make earlier processing unlawful. Article 7(3) says it does not affect processing done before the withdrawal. It does stop the processing from that point on.
What your code can and cannot undo
Your page can delete cookies that your own domain set. It cannot delete cookies set on a vendor's domain, because browsers block that. It also cannot reliably unload a script that has already run. The practical approach is:
- Delete the known first-party marketing cookies by name.
- Stop calling the vendor's functions, and use the vendor's consent or opt-out API if it has one.
- Reload the page, so the new page load starts without the marketing scripts.
- Record in your cookie policy which cookies belong to which vendor, so visitors can use the vendor's own controls for the rest.
The example below shows a withdrawal handler and a re-prompt check. The cookie names are examples. Replace them with the ones found in your own cookie audit.
const STORAGE_KEY = 'consent-state';
const BANNER_VERSION = '2026-11-01';
const MARKETING_COOKIES = ['_fbp', '_gcl_au', 'ad_session'];
// Re-prompt windows are policy choices, not legal rules.
const REFUSAL_REPROMPT_DAYS = 180;
const CONSENT_MAX_AGE_DAYS = 395; // roughly 13 months
function daysSince(isoDate, now = new Date()) {
return (now - new Date(isoDate)) / (1000 * 60 * 60 * 24);
}
function readState() {
try {
return JSON.parse(localStorage.getItem(STORAGE_KEY));
} catch (e) {
return null;
}
}
function saveState(marketing, method) {
const state = {
timestamp: new Date().toISOString(),
bannerVersion: BANNER_VERSION,
choices: { necessary: true, marketing: marketing },
method: method
};
localStorage.setItem(STORAGE_KEY, JSON.stringify(state));
return state;
}
function expireCookie(name) {
const host = location.hostname;
const parts = host.split('.');
const domains = [host];
for (let i = 1; i < parts.length - 1; i++) {
domains.push('.' + parts.slice(i).join('.'));
}
document.cookie = name + '=; Max-Age=0; path=/';
domains.forEach(function (d) {
document.cookie = name + '=; Max-Age=0; path=/; domain=' + d;
});
}
function withdrawMarketingConsent() {
const state = saveState(false, 'preference_centre_withdraw');
MARKETING_COOKIES.forEach(expireCookie);
// Also send state to your consent log endpoint here.
// Reload so the next page load runs without marketing scripts.
location.reload();
return state;
}
function shouldReprompt(state, now = new Date()) {
if (!state) return true; // no stored choice
if (state.bannerVersion !== BANNER_VERSION) return true; // wording or vendors changed
const age = daysSince(state.timestamp, now);
if (state.choices.marketing) return age > CONSENT_MAX_AGE_DAYS;
return age > REFUSAL_REPROMPT_DAYS;
}Re-prompting
Re-prompting means showing the banner again to someone who has already made a choice. There are good and bad reasons to do it.
Good reasons:
- The purposes or vendors changed. If you add an advertising partner or a new use of data, the earlier consent did not cover it. Consent must be specific, so ask again for the new scope.
- The stored choice is gone. The visitor cleared their cookies or storage, or switched device. You have no record of a choice, so you ask.
- Consent has aged. Consent does not expire by statute, but old consent may no longer reflect what the visitor wants.
- The visitor opens settings themselves. This is a withdrawal or change, not a re-prompt.
Bad reasons:
- Asking on every visit after a refusal, to wear the visitor down.
- Redesigning the banner so that the "accept" path is prominent only on the second ask.
- Treating a refusal as an error to be fixed.
How long to wait
Neither the EU nor the UK law sets a fixed period. The numbers below are guidance and practice, not rules:
| Situation | Typical approach | Source of the figure |
|---|---|---|
| Consent given | Ask again after about 12 to 13 months | CNIL recommends storing the choice for up to 13 months |
| Consent refused | Do not ask again for several months | CNIL has suggested around 6 months |
| Material change to purposes or vendors | Ask again at the next visit | Specific consent requirement |
| UK sites | No fixed period, record your reasoning | ICO says to review consent at appropriate intervals |
If you target several countries, pick the strictest period you can accept and document why. Regulators care that you can explain the choice.
In the NoChoice and Refused states, marketing tags stay blocked. Only Consented allows them to load.
The record of withdrawal and refusal
The consent record from the earlier chapter should store refusals and withdrawals as well as acceptances. A log that holds only "yes" answers cannot show that you stopped when the visitor said stop. Each change should create a new entry rather than overwrite the old one, so the history stays intact. For example:
{
"consentId": "c1f4e0a2-3b7d-4c55-9a10-6d2e8b9f7a11",
"timestamp": "2026-11-26T13:41:12Z",
"bannerVersion": "2026-11-01",
"policyVersion": "cookie-policy-v7",
"choices": {
"necessary": true,
"analytics": false,
"marketing": false
},
"method": "preference_centre_withdraw",
"previousConsentId": "c1f4e0a2-3b7d-4c55-9a10-6d2e8b9f7a11"
}If you store the consent record only on the visitor's device, you cannot show it later. A server-side log keyed by a random identifier avoids that. Keep it free of unneeded personal data, such as the full IP address.
UK note: PECR changes
The UK Data (Use and Access) Act 2025 amends PECR. It adds new exceptions to the consent requirement for some low-risk purposes, such as certain statistical and functionality uses, and raises PECR fines towards the UK GDPR level. It does not remove the need for consent for marketing cookies and pixels, so refusal, withdrawal and re-prompting rules for marketing remain as described here. Commencement of the changes is staged, so check the current ICO guidance before relying on a new exception.
Common errors
- Withdrawal buried in the privacy policy. The "Cookie settings" link must be on every page.
- Withdrawal that changes the stored choice but not the behaviour. The banner shows "off", yet the pixel still fires on the next page.
- Refusal that expires after a day. The banner returns on the next session and the visitor is nagged.
- Cookie walls on non-essential content. Blocking the site to those who refuse marketing is risky.
- Only consent events are logged. You cannot prove you honoured a refusal.
- Forgetting vendor-side data. Withdrawal should stop new data going to the vendor. Where the vendor has an opt-out or deletion tool, use it.
Exercise
A visitor accepts marketing cookies on your site in January. In March they open "Cookie settings" and switch marketing off. Describe three things your site must do at that moment, and one thing it cannot do from page code alone.
Show answer
It must (1) stop loading marketing tags and reload so the next page load runs without them, (2) delete the marketing cookies set on your own domain, and (3) store the withdrawal as a new, timestamped consent record that links to the earlier one. From page code alone it cannot delete cookies set on a vendor's domain, so it should use the vendor's opt-out or consent API where one exists and describe the vendor's controls in the cookie policy.
Exercise
A visitor refuses marketing cookies. Your marketing team wants to show the banner again at every visit to improve the opt-in rate. Explain why this is a problem and what a defensible alternative is.
Show answer
Asking at every visit pressures the visitor until they give in, which undermines the claim that consent was freely given, and a regulator may treat it as an unfair design. A defensible alternative is to store the refusal and not ask again for a documented period, such as around six months, unless the vendors or purposes change or the stored choice is lost. The "Cookie settings" link stays available so the visitor can opt in whenever they choose.