Hi,
We have multiple subdomains on one of our main domains. Only one of them www.example.com is served from Matrix. The System Root URL in Matrix is www.example.com. Yet the cookies that Matrix generates are set as .example.com.
I have tried setting the System Parent Domain to www.example.com to change this behaviour (to force the cookies to report www.example.com as their path) to no avail.
Have I misunderstood the way the System Parent Domain setting works? Is there something else I should/could be doing instead?
Thanks
If your site URL is www.example.com and you want cookies to be on www.example.com, then don't touch "System Parent Domain". Just leave it blank.
Thanks Dan. However leaving it blank (which it was and is) results in cookies on .example.com not www.example.com even though the site URL is www.example.com.
I've tested this in Firefox, Opera and Chrome and they all return the same results.
Not sure what to say. I've tested this on a sandbox and it returns on the right level domain name for me.
Do you have both "www.example.com" and "example.com" in your System Root URLs (on System Configuration)?
Thanks again. www.example.com is the only variation in the System Root URLs. example.com was there in the past but was removed some time ago.
One more idea - you don't have your sites in a Site Network, do you? Also, how are you checking the cookie domain? Are you able to post the live URL?
The site is in a Site Network but there is no Primary Root URL set on the Site Network. I'm checking the cookie domain using various tools and settings in the different browsers (eg Web Developer add on in FF).
I just checked the live URL and the cookie domain appears to be working fine (has the domain with the www). I'll PM you the details.
Thanks again Dan.
The SQ_SYSTEM_SESSION cookie is indeed set with the correct domain.
It would appear that I have been getting confused with the GA cookies.
No worries, glad to help 