Cookies Configuration in Magento 2
First of all, we need to enable Cookie Restriction Mode to notify visitors that your store collects cookies and obtain their consent.
- Go to Stores > Settings > Configuration.
- In the left panel under General, choose Web.
- Expand the Default Cookie Settings section and fill the next fields:
Cookie Lifetime. Set how long Cookie files stay in the user’s browser. The default setting is one hour which equals 3600 seconds.
Cookie Path. Enter the path if you want to make cookie files available to other folders. Enter a forward slash “/” to make cookies available everywhere on the site.
Cookie Domain. Enter a subdomain name to make the cookies available to a subdomain. To make cookies available to all subdomains, enter the domain name preceded by a period (.yourdomain.com).
Cookie Restriction Mode. Select “Yes”.
How to Edit Cookies in Magento
1. Go to Content > Pages > Enable Cookies > Select > Edit
2. Here you can edit the next aspects:
Have Any Questions?
We reply within 24 hours
If you have an urgent issue and need to get response faster you may contact us:
+37 525 944 33 88 (Viber, Telegram, WhatsApp)
About the author:
E-commerce Journalist at Mobecls
2+ years experience
Feel free to ask me anything about this post in the comments below