did anyone know how to keep a session across subdomains?
i can access a specific cookie using two different subdomains, but a problem remains ... when i try to send a $_SESSION['test'] for a subdomain to another , it doesn't show up in the other :
subdomain1.domain.com/trial.php
<?php
ini_set("session.cookie_domain", ".domain.com"); // allow access to this cookie from any subdomain
session_start(); // create cookie
$_SESSION['test'] = "TEST1"; // lets try to send "TEST1" in the other subdomain
?>
subdomain2.domain.com/trial.php
<?php
ini_set("session.cookie_domain", ".domain.com");
session_start(); // cookie already set
print_r($_SESSION); // $_SESSION array is empty
?>
thanks, milkael