Posted in:
Magento 2 Tutorials
How to set Cookie Domain in Magento 2
Enter a subdomain name to get the cookies available to a subdomain. The Cookie Domain will usually be your domain name preceded by a dot and excluding the "www". That means the cookie will be available on all subdomains.
To know how you can set cookie domain for your store from the Magento 2 admin panel, go with the following steps:
Steps for the set Cookie Domain:
- Step 1: Login with your Admin panel
- Step 2: Go on the sidebar and click on the Stores option
- Step 3: Then go on the Settings > Configuration
- Step 4: Then expand the General tab and then click on the Web option
- Step 5: Then select the Default Cookie Settings section
- Step 6: Then go on the Cookie Domain field
- In that textbox, enter the valid cookie domain name like subdomain.yourdomain.com, .yourdomain.com
- Step 7: If you are done with these configuration then click on the Save Config button.
October 13, 2021
Did you like this post?