Today, an interesting script to check cookies with php. I had to used it because a bad configuration on the server turned off cookie settings, and I have on my server various shopping cart using cookies.
You may get different results according to your register_globals settings.
Remember to reload the script to have the correct results as cookie variables become available on the next page you have declared them.
setcookie ('test', 'test', time() + 60);
echo "value of \$test: $test<br>";
echo "value of \$_COOKIE[test]: ".$_COOKIE[test]."<br>";
echo "value of \$HTTP_COOKIE_VARS[test]: ".$HTTP_COOKIE_VARS[test]."<br>";