Cookie Expire Problem
| From: | Jeff Oien | Date: | Sun, 08 Apr 2001 00:22:14 +0000 |
| Subject: | Cookie Expire Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-47604@lists.php.net to get a copy of this message | ||
This code won't set a cookie. I took the time part from a past
post to set the time for waaaay ahead. I must be doing it wrong
though:
$time = time();
$cookie_name = "auth";
$cookie_value = "ok";
$cookie_expire = "$time*3";
$cookie_domain = "";
setcookie($cookie_name, $cookie_value, $cookie_expire, "/" , $cookie_domain, 0);
Thanks.
Jeff Oien