load($dms_session); // If setting the user id to 0 worked, it would be a way to logout a // user. It doesn't work because of a foreign constraint in the database // won't allow it. So we keep on deleting the session and the cookie on // logout // $session->setUser(0); does not work because of foreign user constraint if(!$session->delete($dms_session)) { UI::exitError(getMLText("logout"),$db->getErrorMsg()); } // Delete Cookie setcookie("mydms_session", $_COOKIE["mydms_session"], time()-3600, $settings->_httpRoot); //Forward to Login-page header("Location: ../out/out.Login.php"); ?>