Possible Duplicate:
PHP: Cookie domain / subdomain control
I have tow page a.php and b.php. I am running my a.php page with the url as http://www.domain.com/a.php. Here, page contains some session values.
Ex: $_SESSION['name']='my name';
In b.php i am printing above session value. If i access my b.php page with the url http://www.domain.com/b.php, Session values are working fine.
Ex: echo $_SESSION['name']; //Output 'my name';
If i access the same page with the url http://domain.com/b.php , session values are not working.
EX: echo $_SESSION['name']; //No Result
what is the problem and how can i solve this.