I've been searching all over to find a solution to our issue. We are running a magento 1.9.2.2 with multiple magento websites as subdomain:
website1.domain.com
website2.domain.com
etc..
Each website has a store view.
Issue: I could not add products to the cart nor the login user in the default website (domain.com) as well as in subdomain website, When i i have added product in cart then does not work. The message: The cart is empty. When i login using proper user details then just riderct page on same page.
I have used ssl for my website.
Checked:
- system.log file (no error as far as I can tell)
- cookies are set (tried all kinds of configurations), currently life set to 3600 (tested 86400), but tried also with setting various cookie domains, -> no effect
My last cookies setting is :
Configuration Scope: For Default Config
Unsecure:
Base Url : https://www.domain.com/
Secure:
Base Url : https://www.domain.com/
Cookie Lifetime : 3600
Cookie Path : /
Cookie Domain : www.domain.com
Use HTTP Only : Yes
Cookie Restriction Mode : No
Configuration Scope: For Store View
Unsecure:
Base Url : https://www.subdomain.domain.com/
Secure:
Base Url : https://www.subdomain.domain.com/
Cookie Lifetime : 3600
Cookie Path : www.subdomain.domain.com
Cookie Domain : www.subdomain.domain.com
Use HTTP Only : Yes
- prices set per website
- products released for all websites/stores
Solved! Go to Solution.
Hi @mahen_nag,
Update the following settings at global level only, not at website level. At website level select use default.
Cookie Lifetime : 3600
Cookie Path : /
Cookie Domain :
Use HTTP Only : No
Cookie Restriction Mode : No
Also make sure that you have full write permission to var/ folder.
sudo chmod -R 0777 var/
Also check once in app/etc/local.xml , session save config.
I hope it will help you!
Hi @mahen_nag,
Update the following settings at global level only, not at website level. At website level select use default.
Cookie Lifetime : 3600
Cookie Path : /
Cookie Domain :
Use HTTP Only : No
Cookie Restriction Mode : No
Also make sure that you have full write permission to var/ folder.
sudo chmod -R 0777 var/
Also check once in app/etc/local.xml , session save config.
I hope it will help you!
Thanks
It's working..