diff --git a/inc/actions.php b/inc/actions.php index 97374578c0fe971d4e9410c8f9da3455cfc1257a..3636406db9df725996025be2a7d4c210ecbdaeb1 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -207,6 +207,7 @@ function act_save($act){ */ function act_auth($act){ global $ID; + global $INFO; //already logged in? if($_SERVER['REMOTE_USER'] && $act=='login') @@ -217,8 +218,13 @@ function act_auth($act){ $lockedby = checklock($ID); //page still locked? if($lockedby == $_SERVER['REMOTE_USER']) unlock($ID); //try to unlock - + + // do the logout stuff auth_logoff(); + + // rebuild info array + $INFO = pageinfo(); + return 'login'; }