Setting session variables for subdomains


#1

Hello all,

So I have a site ‘site.com’ with several subdomains:

A.site.com
B.site.com
C.site.com

When people login to the main site (and set a session variable, I want them to have access to all of the subdomains as well.

I’m using ‘session_set_cookie_params ( 10000, “/”, “.site.com”, 0)’ before the session_start() line, but this isn’t working for me.

Any thoughts?