I've read just about every cookie thread on this site and I'm still apparently not setting my cookie correctly. Here's what I've got:
<?php
$value = "blah";
setcookie("name", $value , time()+1800);
?>
<?php
print "<head></head><body><meta http-equiv=";
print "refresh ";
print " content=0;URL=http://www.blah.com/page.phtml>";
print "</body>";
?>
That's on a page called setcookie.phtml, and then as you can see it forwards to another page, where I'm trying to access the cookie with:
$name = $HTTP_COOKIE_VARS["name"];
echo $name;
I've searched my hard drive and the cookie isn't being set. Is there something wrong with my code or might there be something with the server that won't allow me to set a cookie?
Any help is greatly appreciated.
--Eric "Intaglio" Seufert