http://qs321.pair.com?node_id=415369


in reply to How can I delete a cookie?

Use "expires" or you can send the cookie again with a null value "";

Ex:

use CGI qw/:standard/; use CGI::Cookie; my %CookieVars = ( ISAUTH => $ActualCookieVars{ISAUTH}, USERNAME => $ActualCookieVars{USERNAME}, AUTHLEVEL => $ActualCookieVars{AUTHLEVEL}, MYNUMBER => "$mynumber" ); # set cookie to the user my $cookie1 = new CGI::Cookie( -name=>'Test', -value =>\%CookieVars, # var to be sent -expires=>'+1h', # time to expire -domain=>"teste.com", # domain -path=>'/', #option path -secure=>0 # no ssl );