note 11078 deleted from function.setcookie by sander

From: Date: Wed, 05 Dec 2001 11:57:02 +0000
Subject: note 11078 deleted from function.setcookie by sander
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21631@lists.php.net to get a copy of this message
DETECTING A COOKIE ------------------ <? // Set Temporary Cookie setcookie("TEMPCOOKIE", "NOVALUE", time() + 60 * 60); // Set Cookie Variable $cookieinfo = $HTTP_COOKIE_VARS["TEMPCOOKIE"]; if ($cookieinfo == "NOVALUE") { echo "You have cookies!"; exit; } else { echo "You don't have cookies!"; exit; } ?>

« previous php.notes (#21631) next »