# Delete the session for good: my $session = CGI::Session->load() or die CGI::Session->errstr; $session->delete(); $session->flush(); print $session->header(-location=>'http://localhost');