Want to use one session variable in two sites

Hello, i have to sites a main domain and a sub-domain.
when a user login to the main site he can navigate to the sub-domain with the session variable that was set in the main site.
it is working fine in my localhost. but i took the two site online but its not working

What is session.cookie_domain set to? I think setting it to something like this will make it work across all sub-domains:

session.cookie_domain = ".yourdomain.com"

This can be set in php.ini or your can try it in ini_set() as well.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.