Re: Sessions and subdomains issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx> skrev i meddelandet
news:20041206080158.GA13332@xxxxxxxxxxxxxxxxx
> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux