Installation & Configuration

How can I make cookies work for both www.mydomain.com and mydomain.com?

Scenario #1:
"I'm getting weird behaviour depending on if I use the "www" or not with Nucleus. I left my cookie domain empty and just the \ in the cookie path, but if I login to my domain without the www, then go to a link with that in it, to Nucleus it appears I'm not logged in. (Same if I log into it with the www and go to a link without it.)"

Scenario #2:
"I've set up several blogs on the same Nucleus installations to operate on different subdomains but I've found the <%edit%> tag only works for the main blog of my website. It does not appear for the other blogs wehre I have set them to run under another subdomain."

Solution:
Change the cookie setting in your Global Settings.

Original forum threads (thanks, roel!):
http://forum.nucleuscms.org/viewtopic.php?t=6079
http://forum.nucleuscms.org/viewtopic.php?t=10987

Method:
In your Admin area, go to Global Settings and set the cookie domain to:

.mydomain.com

Make sure there is a dot before "mydomain.com". Next, log out of Nucleus, delete any and all cookies containing "mydomain.com" and restart your browser.

Further reading:

section: Installation & Configuration | submitted by Leng on 2005.May.20 | 5192 views

item rate
Total votes: 12 - Rating: 5.83

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10