Magento cookies2 of 5 need consent
Magento sets 5 cookies we know of. 2 cookies may only be set after the visitor opts in; 3 are strictly necessary and exempt.
Reviewed · Provider: Adobe (Magento)
List of Magento cookies
MAGE_CACHE_SESSIDNecessaryNo consent neededSessionUsed by Magento to determine if the browser supports cookies and to associate the session with the correct user.
form_keyNecessaryNo consent neededSessionCSRF protection token. Attached to all forms in Magento to prevent cross-site request forgery.
mage-messagesFunctionalConsent required1 yearStores flash messages (e.g. success or error notices) that display after a page redirect.
recently_viewed_productFunctionalConsent required1 yearStores the IDs of products recently viewed by the user to power the 'Recently Viewed' section.
mage-cache-storageNecessaryNo consent needed1 yearStores dynamic content sections so Magento can re-render personalised blocks without a full page reload.
How to handle Magento cookies
- 1Load it only after consent
Hold the Magento script until the visitor accepts functional cookies. Blocking the script is what stops the cookies; hiding them in a banner does not.
- 2Make Reject work
After a visitor rejects, none of the 2 consent-requiring cookies below may be set or kept.
- 3Name every cookie in your policy
List each cookie by name with its purpose, provider (Adobe (Magento)) and lifetime.
- 4Check the result, not the settings
Open your site in a private window, reject cookies, and look at what was stored. Or run a scan and compare the three stages.
Tools that help: tracking script blocker · Consent Mode v2 generator
Other vendorsAnd the cookies they set
Does Magento wait for consent on your site?Scan it in 2 minutes
Free scan · every cookie before consent, after Reject and after Accept