note 45529 deleted from function.setcookie by tomsommer

From: Date: Thu, 09 Sep 2004 21:35:21 +0000
Subject: note 45529 deleted from function.setcookie by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76360@lists.php.net to get a copy of this message
Note Submitter: goochivasquez_no_spam at yahoo dot co dot uk ---- Remember if you set a cookie with a path (eg '/', set cookie available for whole domain) and you want to delete the cookie again you have to use the same path or a path that includes the path under which the cookie was set. If you don't do this the cookie won't be deleted. set cookie: setcookie ("admin", $aname, time() + (60*60*24*7), '/'); delete again: setcookie ("admin", "", time() - 3600), '/');

« previous php.notes (#76360) next »