5 Attachment(s)
How to manage cookie policy magento 2?
HOW TO MANAGE COOKIE POLICY MAGENTO 2?
View more Magento 2 Themes
Attachment 8977
Cookies are designed to be a reliable mechanism for websites to remember stated information
(in an online store, they are items added to the shopping cart) or to record the user’s browsing
activity (including clicking particular buttons, logging in, or recording which pages were visited
in the past). Definitely, cookies create convenience for your customers in many ways. Therefore,
to manage cookie policy Magento 2 plays an important role in your store organization.
In this post, I gonna show you steps to manage cookies policy on Magento 2 store.
1. Enable cookies restriction mode
Admin panel > Stores > Configuration (under Settings)
Attachment 8978
On the left-hand side of the panel, click on Web under General. Then expand
the Default Cookie Settings section
Attachment 8979
there you’ll see 5 heads including:
Attachment 8980
Cookie Lifetime: enter the cookie lifetime in seconds
Cookie Path: enter cookie path if you want to make cookies available to other folders.
Cookie Domain: enter the subdomain name to make the cookies available to a subdomain
Use HTTP Only: If you set to “No”, user security could be compromised; set to “Yes”
to prevent scripting languages such as JavaScript from gaining access to cookies.
Cookie Restriction Mode: set to “Yes”
Then, click Save Config to complete to process
When prompted to update the cache, click the Cache Management link in the system message. Then, refresh the invalid cache.
2. Edit the Cookie Restriction Message
Admin panel > Content > Pages (under Elements)
Attachment 8981
VIEW DETAIL->