Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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.

Replies are listed 'Best First'.
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 about the Monastery: (6)
As of 2016-06-25 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (327 votes). Check out past polls.