Possible Duplicate:
PHP: Cookie domain / subdomain control
Allow php sessions to carry over to subdomains
change the php.ini:
session.cookie_domain = domain.com
then it would be valid for all subdomains. But this depends on the all sub domais are providet by the same server.
If it are multiply servers then you have to share the session folder by NFS. Or you only add another cookie for auto login and have a seperate session for each subdomain.
http://en.php.net/manual/en/function.setcookie.php#domain
But the securrety in mind by your auto login cookie.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With