blackarma Posted March 6, 2012 Share Posted March 6, 2012 Hello, i have 2 seperate shops: 1) mydomain.com 2) dk.mydomain.com The language can not be changed on #2 subdomain if there is cookie from #1 domain in browser. If you delete cookie from #1 domain then everything works as expected in #2 subdomain. As stated in prestashop back-office -> Tools -> subdomians " Cookies are different on each subdomain of your Website. If you want to use the same cookie, please add the subdomains used by your shop here. The most common is "www". " Why this rule is not respected? How can i make that cookie from #1 don't interfere with subdomain #2? For domain #1 cookie is created for ".domain.com" as far as i know that will interfere on all subdomain no matter what you put in that back-office settings. How to fix this? SOLVED: can't just copy main website alone you have to change cookie_key and cookie_iv i guess Link to comment Share on other sites More sharing options...
bellini13 Posted March 6, 2012 Share Posted March 6, 2012 I assume you created an entry for dk? Link to comment Share on other sites More sharing options...
blackarma Posted March 6, 2012 Author Share Posted March 6, 2012 I assume you created an entry for dk? No, only subdomain entry on main domain is www. Link to comment Share on other sites More sharing options...
blackarma Posted March 6, 2012 Author Share Posted March 6, 2012 Does the cookie key has to be different in settings.inc.php? Link to comment Share on other sites More sharing options...
bellini13 Posted March 6, 2012 Share Posted March 6, 2012 in the backoffice, tools | subdomain section, add an entry for dk so you should have 2 entries www dk Link to comment Share on other sites More sharing options...
blackarma Posted March 6, 2012 Author Share Posted March 6, 2012 in the backoffice, tools | subdomain section, add an entry for dk so you should have 2 entries www dk Solved my problem, i wanted 2 seperate cookies not combined, thnx. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now