Issue with cookies & multiple stores on the same host
Posted: Tue May 04, 2010 2:29 pm
Hi,
At the moment we have 3 stores set up on the same domain as follows:
http://store.domain.com/en
http://store.domain.com/fr
http://store.domain.com/de
All 3 stores share the same common backend.
Each of these stores are actually setup with a different locality and default to a different language, but the trouble comes when a user does the following:
1) visit the first store http://store.domain.com/en first
2) then visit the second store http://store.domain.com/de, at this point the store will load up with its language set to english
In fact, the second visit to the german store will share the same session as it did with the english store, because the path of the cookie is set to '/'.
Is this the ideal behaviour? Or perhaps OpenCart cookies can be set with more specific path information now to take into use cases where multiple stores can be installed in a single domain?
At the moment we have 3 stores set up on the same domain as follows:
http://store.domain.com/en
http://store.domain.com/fr
http://store.domain.com/de
All 3 stores share the same common backend.
Each of these stores are actually setup with a different locality and default to a different language, but the trouble comes when a user does the following:
1) visit the first store http://store.domain.com/en first
2) then visit the second store http://store.domain.com/de, at this point the store will load up with its language set to english
In fact, the second visit to the german store will share the same session as it did with the english store, because the path of the cookie is set to '/'.
Is this the ideal behaviour? Or perhaps OpenCart cookies can be set with more specific path information now to take into use cases where multiple stores can be installed in a single domain?