note 19265 added to function.setcookie

From: Date: Thu, 21 Feb 2002 14:51:57 +0000
Subject: note 19265 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-26887@lists.php.net to get a copy of this message
About the post above which states setcookie("cookiename); isn't working for unsetting cookies on client, it's a php bug in versions 4.1.0 and 4.1.1. The fix presented setcookie("cookiename", time() - 3600) seems to work, while better yet is raising 3600 to 360000 or some huge value, since clocks misadjusted on client or server may not work (cookies are deleted when time is set to past, but the client and server clocks may disagree about what time is it right now). -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+19265 http://master.php.net/manage/user-notes.php?action=delete+19265 http://master.php.net/manage/user-notes.php?action=reject+19265

« previous php.notes (#26887) next »