hempsmoke
Только что у себя специально протестировал - все видит. Вот полные скрипты:
root/auth/index.php
PHP код:
<?
if ($_COOKIE['authed']!='yes') {
setcookie('authed', 'yes', time()+3600, '/test/root/');
header('Location: '.$_SERVER['PHP_SELF']);
} else {
echo "Cookie set!";
}
?>
root/index.php
PHP код:
<?
echo 'Cookie is: '.$_COOKIE['authed'];
?>