Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Bug Reports / Sessions and cookies

Sessions and cookies

Locked

Started by freearticlepublishin on 28 Nov 2010, 8:44 PM · Views: 1,326

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
28 Nov 2010, 8:44 PM
#1
Join Date:
Nov 2007
Location:
oregon
Posts:
70
Plugin Contributions:
0

Sessions and cookies

In admin sessions cookie domain when set to false and zen is set up in a subdomain it still showes the cookie name as if this setting was set to true.

I have played with this over the last couple days changing the config file Only to take out of subdomain to just a folder domain.com/zen and back to zen.domain.com all workes as expected when just in a folder but not in a subdomain.

the setting will strip the www so why not the sub off of sub.domain?

Is there a way around this? I really need this fix.

zen 1.3.9h

29 Nov 2010, 1:58 AM
#2
Join Date:
Nov 2007
Location:
oregon
Posts:
70
Plugin Contributions:
0

Re: Sessions and cookies

I have done some investigation into the way Zen calculates the cookie domain name. The original osC and most clones have a congiguration file where you can set the cookie domain. Zencart calculates the domain but does it poorly for more complicated domains with subdomains.
Eg if you have subdomain.domain.com Zen will xcalcualte the cookie domain correctly as .domain.com. Howver in caes like dom1.dom2.domain.com it will go wrong (should still be .domain.com). Even worse, for the uk and some other coutries with domains like subdomain.domain.com.uk it goes wrong again. but this is still the best cart there is in myopion.