delete session

master
joey 2006-10-28 00:36:34 +00:00
parent b6509c74a9
commit a1eaeffe5e
1 changed files with 1 additions and 0 deletions

View File

@ -693,6 +693,7 @@ sub cgi () { #{{{
if (userinfo_get($session->param("name"), "banned")) { if (userinfo_get($session->param("name"), "banned")) {
print $q->header(-status => "403 Forbidden"); print $q->header(-status => "403 Forbidden");
$session->delete();
print "You are banned."; print "You are banned.";
exit; exit;
} }