Can this be done? I have to servers, one for forums and one for the main site. I'd like to test for the existence of bbuserid cookies on the users machine so that they can access a certain page on the main site.

However, you can't look for cookies on other domains. isset($HTTP_COOKIE_VARS['bbuserid']) returns TRUE on the forums server but FALSE on the main server.

I've tried to use an included file with a PHP file on the forums server like this:

if (isset($HTTP_COOKIE_VARS['bbuserid'])) {
//echo "user id here on forums!";
$check = "go";
} else {
//echo "not on this domain";
$check = "no";
return ($check);

However, when calling the file via include() or require(), I still get the answer of "no" on the main server, but when accessing the file directly on a browser on the forums server gets the correct "go" value.

So, without doing things like accessing the database across servers, etc in the world can I access the cookies like I am trying to?

Thanks a million to anyone that can help!!!