hi all,
i'm trying to get php to share sessions across my subdomains.
the user logs in to "main.site.com", and should be allowed to visit "sub.site.com" with the same session variables intact.
per the manual, i'm setting session cookies like so:
ini_set("session.cookie_domain", ".site.com");
session_set_cookie_params(0 , '/', ".site.com");
i'm getting strange results:
if you open the browser and log in to main.site.com, sub.site.com will not share the session.
if you log out / log back in without closing the browser, the session will be shared.
anyone have experience with this?
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
i'm trying to get php to share sessions across my subdomains.
the user logs in to "main.site.com", and should be allowed to visit "sub.site.com" with the same session variables intact.
per the manual, i'm setting session cookies like so:
ini_set("session.cookie_domain", ".site.com");
session_set_cookie_params(0 , '/', ".site.com");
i'm getting strange results:
if you open the browser and log in to main.site.com, sub.site.com will not share the session.
if you log out / log back in without closing the browser, the session will be shared.
anyone have experience with this?
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big