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 |