Forum Moderators: coopster

Message Too Old, No Replies

session problems

         

test1

10:29 pm on Feb 5, 2009 (gmt 0)

10+ Year Member



On my site users have the option of accessing their own personal site through a subdomain like user.domain.com or their own custom domain that they can point to the site like customdomain.com. When you visit their site with the subdomain sessions work fine, but if you visit by customdomain.com, no sessions will save. I suspect that it has something to do with my "session.cookie-domain" settings as I have it set to ".domain.com" so that sessions will carry over from the different subdomains. What can I do to overwrite this so that if a user access the site with the custom domain, sessions will still work? Or could the problem be something else?

joelgreen

11:06 pm on Feb 5, 2009 (gmt 0)

10+ Year Member



Cookies are domain specific. Cookie can work on subdomains, but will not work on another domain

test1

11:19 pm on Feb 5, 2009 (gmt 0)

10+ Year Member



I'm not trying to get them to carry over from one domain to another, what I'm saying is that when I access their site through the custom domain, I can't even write new sessions. So for instance if on their site there is a login form it won't work. Make sense?