Contents
When your Magento system has the same configuration for your main domain and subdomain in the Magento config, and if the user logs in to both the sites, Magento creates two cookies. One has ‘Domain Value’ set with the main domain, and another with the subdomain.
Create the Deletecookie controller in the app/code/Mageplaza/HelloWorld/Controller/Cookie with the following content:
Where does Magento regenerate cookies when user logs out?
When the user logs out, Magento will regenerate the cookie with a Domain Value from the URL accessed (i.e www.example.com ), since in php.ini no cookie domain was specified. Note that if the user logs in using example.com or a cookie domain is configured in php.ini, no issues will arise.
Because cookies are only accessible to the specified path and any subpaths, more discussion about this you could see here Cookie path and its accessibility to subfolder pages. Thanks for contributing an answer to Magento Stack Exchange!
The default Magento cookies are classified as Exempt / Non-Exempt to help merchants meet the requirements of privacy regulations such as the GDPR. Merchants should use this information as a guide, and consult with legal advisors to update their Privacy and Cookie Policies as part of a comprehensive privacy regulation compliance strategy.
Why do I get nonce ID when I log in to Magento?
This is how it typically happens: when you login by entering your username and password, you will be redirected to the same login page and URL, and your browser is appended with nonce id. This happens for both the customer front-end and the Magento back-end login. Let’s look at a few reasons why this happens, and how we should resolve those issues.
Where is the PHP Session ID stored in Magento?
As you might have guessed, the same PHP Session ID needs to be stored as a cookie in the client browser to relate. Magento can store sessions via multiple session providers and this can be configured in the Magento config file at app/etc/local.xml.
Clearing browser cache and cookies usually results in a speedier internet experience. With cookies and a full cache, browsers “remember” old versions of websites and are able to load more quickly. Usually, this is not a problem, however when websites update, remembering that old version can sometimes cause a problem.
How do I save a session in Magento?
Magento can store sessions via multiple session providers and this can be configured in the Magento config file at app/etc/local.xml. These session providers can be chosen here.