in reply to Re: delete cookie
in thread delete cookie
yes i set the cookie well, and i can read it in browser, bt the problme is deleting or clearing it. this is it
this is how i set my cookie and its working well.
my $cookie = $cgi->cookie(-name => 'user', -value => 'user', -expires= +> '+1m'); print $cgi->redirect(-location => $nextpage -cookie => $cookie);
and here i read my cookie
$cookie = $cgi->cookie('user'); $page = '#page'; if (! $cookie) { print $cgi->redirect($page); } if ($cookie) { #continue }
everything there is ok, bt the problem is clear the cookie (user)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: delete cookie
by roboticus (Chancellor) on May 11, 2015 at 20:15 UTC | |
|