note 41064 added to function.setcookie

From: Date: Mon, 29 Mar 2004 10:12:28 +0000
Subject: note 41064 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-67311@lists.php.net to get a copy of this message
This example is not actual. Example 383. setcookie() delete example copy to clipboard <?php // set the expiration date to one hour ago setcookie ("TestCookie", "", time() - 3600); ?> It seems that setcookie() with second parameter as empty string ignore third parameter and set expire time to strtotime("-1 year"). ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41064 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41064&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41064&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67311) next »