note 41063 deleted from function.setcookie by irchtml

From: Date: Mon, 29 Mar 2004 10:17:11 +0000
Subject: note 41063 deleted from function.setcookie by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-67312@lists.php.net to get a copy of this message
Note Submitter: kingoleg@mail.ru ---- 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").

« previous php.notes (#67312) next »