Cookie -> Delete -> Reset

From: Date: Tue, 09 Jan 2001 17:19:41 +0000
Subject: Cookie -> Delete -> Reset
Groups: php.general 
Request: Send a blank email to php-general+get-33487@lists.php.net to get a copy of this message
Hey guys, I wonder if U can help... I have the following code that reads a cookie and deletes it and then resets a cookie of the same name. However all it seems to do is delete the cookie and not set a new one. Any ideas what I am missing? $user = $HTTP_COOKIE_VARS["user"]; setcookie("user"); setcookie("user","$user",time()+1500,"/",".test.serve.co.uk",0); Thanks in advance, Abe

« previous php.general (#33487) next »