I'm trying to keep the same session alive across subdomains on the same machine. I've tried some of the conventional techniques quoted below (placed at the top of the page right after <?php), but none of them work. I know this is possible since I've seen it done on other sites, but I just can't seem to get it to work!
Tried this, didn't work:
PHP Code:
ini_set("session.cookie_domain",substr($_SERVER[HTTP_HOST],3));
session_start();
Also tried this, didn't work:
PHP Code:
session_set_cookie_params(360000,'/','.domain.org');
session_start();
ob_start();
(where .domain.org is my domain name, with a . before it!)
And, also tried this, didn't work: 
PHP Code:
session_set_cookie_params(360000,'/','.domain.org');
session_start();
Please help!
Bookmarks