am trying to read cookie and delete it, bt seems there is a problem with my script. i can read the cookie very well. bt deleting it or expiring it is the problem i get
use CGI; my $cgi = CGI->new(); $sid = $cgi->cookie('$u'); $login = '#login'; $logout = '#index'; if ($sid) { $del = $cgi->delete($sid); print $cgi->redirect($logout); if (! $sid) { print $cgi->redirect($login); } }
In reply to delete cookie by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |