note 41063 added to function.setcookie

From: Date: Mon, 29 Mar 2004 09:56:10 +0000
Subject: note 41063 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-67310@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+41063 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41063&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41063&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67310) next »