Possible Duplicate:
Allow php sessions to carry over to subdomains
How to setup user php $_SESSION to work in all subdomains?
Like Google makes it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are several things to take in account while sharing
$_SESSIONacross subdomains.Are all subdomains on ran by the same server?
If not, then, you will need to share sessions amongst servers, there are several solutions:
If they are, you may just need to configure your cookie domain using
session.cookie_domainini directive.Are you running Suhosin, if you do, you may need to disable some security options to allow your session to be decrypted on the others servers.