Pass Sessions between subdomains in php
01
Aug
2005
If you want to be able to pass session data between subdomains you need to add the following to the php.ini file.
session.cookie_domain = .mydomain.com
If you are unable to modify the the php.ini file you can add the following before the session.start() function on any page which creates the session cookie.
ini_set("session.cookie_domain", ".mydomain.com");
Worked perfectly well!
Thanks alot!
-Lucas
however I got here -- THANK YOU! Especially the second hint is priceless.