Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: cookie problem

by perlknight (Pilgrim)
on Apr 29, 2002 at 15:43 UTC ( #162844=note: print w/replies, xml ) Need Help??

in reply to cookie problem

All, thanks for your help and since we're on the subject of cookie, then how do I clear the cookie? I noticed I can reset the cookie by just leaving the name/value to nothing or just by setting the expires date to expires? What would be the proper way of doing it? Thanks.

Replies are listed 'Best First'.
(Kozz): Re: deleting cookies
by Kozz (Friar) on Apr 29, 2002 at 20:25 UTC
    To delete a cookie, set the cookie again with ALL the same parameters used to set it initially, including the same cookie name, path, domain, "secure" flag (if any of these were used), and an expiration date in the past. That should do the trick.

    But again, as someone else pointed out, this is also well-documented in the RFC. Or you can use the implementation to witness yourself what the cookie looks like when being deleted (i.e. re-set with exp. date in the past).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://162844]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2018-06-22 18:10 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.