bigup401 has asked for the wisdom of the Perl Monks concerning the following question:
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); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: delete cookie
by Corion (Patriarch) on May 11, 2015 at 12:06 UTC | |
|
Re: delete cookie (cgi101)
by Anonymous Monk on May 12, 2015 at 02:25 UTC | |
by bigup401 (Pilgrim) on May 12, 2015 at 09:47 UTC | |
by Anonymous Monk on May 12, 2015 at 09:48 UTC | |
|
Re: delete cookie
by Anonymous Monk on May 11, 2015 at 17:45 UTC | |
by bigup401 (Pilgrim) on May 11, 2015 at 19:12 UTC | |
by roboticus (Chancellor) on May 11, 2015 at 20:15 UTC | |
|