Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: delete cookie (cgi101)

by bigup401 (Pilgrim)
on May 12, 2015 at 09:47 UTC ( [id://1126395]=note: print w/replies, xml ) Need Help??


in reply to Re: delete cookie (cgi101)
in thread delete cookie

i got some idea and it worked for me. by overwriting the old cookie and then the browser will delete it because it has expired

$page = '#page'; $cookie = $cgi->cookie(-name => 'user', -value => '', -expires=> '-1d' +); print $cgi->redirect(-location => $page, -cookie => $cookie);

it works well now. can delete the old cookie by overwriting it

Replies are listed 'Best First'.
Re^3: delete cookie (cgi101)
by Anonymous Monk on May 12, 2015 at 09:48 UTC

    Of course it worked, thats how HTTP works

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found