RE: [PHP] Cookies not expiring
| From: | David McInnis | Date: | Thu, 14 Mar 2002 15:04:17 +0000 |
| Subject: | RE: [PHP] Cookies not expiring | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88509@lists.php.net to get a copy of this message | ||
Here is what I am using to set my cookie.
$cp_sessionid = $CP_partnerid . "_" .
uniqid(str_pad(getenv("REMOTE_ADDR"), 15, "0"));
setcookie('cp_sessionid', $cp_sessionid);
David McInnis
-----Original Message-----
From: Rick Emery [mailto:remery@excel.com]
Sent: Thursday, March 14, 2002 6:01 AM
To: 'David McInnis'; php-general@lists.php.net
Subject: RE: [PHP] Cookies not expiring
Can't read your mind, bud.
Show us your code...
-----Original Message-----
From: David McInnis [mailto:david@dataovation.com]
Sent: Thursday, March 14, 2002 2:25 AM
To: php-general@lists.php.net
Subject: [PHP] Cookies not expiring
I understand that if an expiration time is not set, the cookie should
expire at the end of the session (when the browser is closed). This is
not happening.
What is wrong here?
I would actually prefer for the cookie to expire when the user left the
Web site. Any ideas?
Thanks,
--
David A McInnis
Information Technology Manager
CareerPerfect.com(r) -- solutions for a perfect career(sm)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php