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
In reply to Re^2: delete cookie (cgi101)
by bigup401
in thread delete cookie
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |