note 4066 deleted from function.setcookie by rasmus
| From: | rasmus@php.net | Date: | Sat, 10 Aug 2002 14:25:45 +0000 |
| Subject: | note 4066 deleted from function.setcookie by rasmus | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34695@lists.php.net to get a copy of this message | ||
When using setcookie() IE 5 sometimes give some problems try this instead:
<PRE>$time = mktime()+600;
$date = date("l, d-M-y H:i:s", ($time));
header("Set-Cookie: cookiename=$value; expires=$date GMT");</PRE>
In this example the cooky will expire in ten minutes, good luck with it.
PS: You better use this because it works always.
Dennis van der Vliet