From 6f6286e2019418d9d6c350badf543ba84cf1e8c6 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 5 Mar 2007 04:55:36 +0000 Subject: [PATCH] r1432: Make logout work by calling Authentication::clearCookies() --- login.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/login.php b/login.php index 2aea9a8..9759a35 100755 --- a/login.php +++ b/login.php @@ -92,8 +92,7 @@ if ($_REQUEST['do'] == 'logout') if ($bugsys->userinfo['userid']) { $db->query("DELETE FROM " . TABLE_PREFIX . "adminsession WHERE sessionid = '" . $bugsys->input_escape(COOKIE_PREFIX . 'adminsession') . "'"); - $funct->cookie(COOKIE_PREFIX . 'userid'); - $funct->cookie(COOKIE_PREFIX . 'authkey'); + $auth->clearCookies(); $funct->cookie(COOKIE_PREFIX . 'adminsession'); $message->redirect(_('You have been logged out.'), ($_SERVER['HTTP_REFERER'] ? $_SERVER['HTTP_REFERER'] : 'index.php')); } -- 2.43.5