% if($success) {

You have been logged out.

% } else {

Attempt to log out failed. You were not logged in.

% } <%init> my $user = Apache2::SiteControl->getCurrentUser($r); my $success = 0; if(defined($user) && $user->isa("Apache2::SiteControl::User")) { $user->logout($r); $success = 1; }