static function ResetSession() { // Unset all of the session variables. unset($_SESSION['auth_user']); unset($_SESSION['login_mode']); UserRights::_ResetSessionCache(); // If it's desired to kill the session, also delete the session cookie. // Note: This will destroy the session, and not just the session data! }