I have a interactive web site that has authors. When an author enters the site on www.mysite.com and logs in, the session varible becomes
$_SESSION[loggedid]
Set your session.cookie_path to the domain .yourdomainname.tld, note the starting dot (.).
.yourdomainname.tld
.