note 75784 deleted from function.setcookie by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 17:50:07 +0000 |
| Subject: | note 75784 deleted from function.setcookie by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155029@lists.php.net to get a copy of this message | ||
Note Submitter: Jim
----
Setting the expiration time using strtotime is a very convenient way to calculate cookie expiration.
setcookie ("TestCookie", "", strtotime("+1 week"));