Re: Sessions and subdomains issues

From: Date: Mon, 06 Dec 2004 11:14:25 +0000
Subject: Re: Sessions and subdomains issues
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203567@lists.php.net to get a copy of this message
I had a similar problem before. I had my admin at admin.mydomain.com, and the cookies did not transfer. I changed it to www.mydomain.com/admin instead... In my host my subdomain admin.mydomain.com is located in www.mydomain.com/admin, I assume similar structure for you? /Peter "Nick Wilson" <nick@stylesheet.org> skrev i meddelandet news:20041206080158.GA13332@stylesheet.org... > Goodmorning all, > > My application (a third party customized cms) shares sessions across the > main site and the two subdomains - or at least it should.... > > I have 'php_value session.cookie_domain ".mysite.com" > and 'php_value session.cookie_path "/" > > all set in htaccess > > The sesions are stored in a db and are not functioning correctly across > the subdomains - example: if i log in at the main www domain then go > the subdom1.mysite.com i am not logged in there. The subdomains have > their own db's but share tables for sessions and some other stuff with > the main site. > > As it's a third party app i can be no more specific unless someone would > be kind enough to tell me what to look for or what info to provide. So, > here is my question: > > * Are there any "common pitfalls" you can think of that i should look > at? > > * Have I set the domain and path correctly for this to work? > > any help in regard to what direction to take to track down the problem > would be really appreciated, much thanks for you time... > > -- > Nick W

« previous php.general (#203567) next »