Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
which works fine and as expected. I use different code to delete the cookie:my $cookie = $CGI->cookie( -name=>'stflogin', -value=>$CGI->param("login"), -expires=>'+1m'); my $other_cookie = $CGI->cookie( -name=>'stfpassword', -value=>$CGI->param("password"), -expires=>'+1m'); print $CGI->header(-cookie=>[$cookie,$other_cookie]);
The result is hardly as I expected:my $cookie = $CGI->cookie( -name=>'stflogin', -value=>""); my $other_cookie = $CGI->cookie( -name=>'stfpassword', -value=>""); print $CGI->header(-cookie=>[$cookie,$other_cookie]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Weird CGI Cookie Problem
by tachyon (Chancellor) on Jul 19, 2001 at 07:19 UTC |