RE: [PHP] Cookies not expiring
| From: | Ray Todd Stevens | Date: | Thu, 14 Mar 2002 16:09:47 +0000 |
| Subject: | RE: [PHP] Cookies not expiring | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88538@lists.php.net to get a copy of this message | ||
Also you have to close all instances of the browser for this to occur.
That is even if you close the browser that has a session to the site if
you have another window open to any other site then the cookie
stays.
> OK...that looks valid.
>
> Now, what indications are you getting that the cookie is not expiring when
> you close the browser?
>
> As far as expiring when user leaves the web-site? M.C. Hammer said it
> best...can't touch that
>
> -----Original Message-----
> From: David McInnis [mailto:david@dataovation.com]
> Sent: Thursday, March 14, 2002 9:04 AM
> To: 'Rick Emery'; php-general@lists.php.net
> Subject: RE: [PHP] Cookies not expiring
>
>
> 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
>
>
--------------------------------------------------------------------
--------------
Ray Todd Stevens Specialists in Network and Security
Consulting
Senior Consultant Software audit service available
Stevens Services
Suite 21
3754 Old State Rd 37 N
Bedford, IN 47421
(812) 279-9394
Raytodd@kiva.net
Thought for the day:
Intuition (n): an uncanny sixth sense which tells people
that they are right, whether they are or not.
For PGP public key send message with subject
please send PGP key
If this message refers to an attachment the attachment
may arrive as a seperate mail message depending on the
type of mail client and gateway software you are using.