Possible Duplicate:
PHP Sessions across sub domains
I can't seem to get this to work. I want to be able to log in from my main domain, and remain logged in when they go to a subdomain of the site. Whenever I go from my main domain to a subdomain, I'm immediately logged out.
I've tried changing session.cookie_domain in php.ini with no avail, as well as trying
ini_set('session.cookie_domain','.site.com' );
and this in .htaccess as well
php_value session.cookie_domain .site.com
How can I have sessions go between subdomains?