Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Can a cookie created via CGI.pm be deleted by CGI::SESSION?

by jbrugger (Parson)
on Jul 03, 2006 at 06:33 UTC ( #558940=note: print w/ replies, xml ) Need Help??


in reply to Can a cookie created via CGI.pm be deleted by CGI::SESSION?

If you use a module, do you read the documentation?
It's right there on cpan: CGI::Session

delete() Deletes a session from the data store and empties session data fro +m memory, completely, so subsequent read/write requests on the same o +bject will fail. Technically speaking, it will only set object's stat +us to STATUS_DELETED and will trigger flush(), and flush() will do th +e actual removal.
Update: Whoops, i did not read your question well enough, sorry :$.

Yes you can, just re-create the cookie and delete it (but the answer was already given.

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.


Comment on Re: Can a cookie created via CGI.pm be deleted by CGI::SESSION?
Download Code
Re^2: Can a cookie created via CGI.pm be deleted by CGI::SESSION?
by newbie00 (Beadle) on Jul 03, 2006 at 07:36 UTC
    Thanks folks.

    I'll give it a try.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://558940]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-08-28 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls