<? setcookie("cookie", "valor");?><html> <head> <title> Prueba </title> </head> <body> <? echo "La cookie vale:".$cookie."\n"; ?> </body></html>
echo $HTTP_COOKIE_VARS["cookie"];//o en su forma reducida $_COOKIE["cookie"];