Jump to content

[Solved] Subdomain cookie is overriden by main cookie


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...