From 56b377795f5c0a2311bc2da8cfe5b3a0f2263c87 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 30 Aug 2008 09:50:41 -0400 Subject: [PATCH] When calling BSFunctions::cookie() to clear cookies, we need FALSE not NULL --- admin/global.php | 4 ++-- includes/auth/auth_vbulletin.php | 4 ++-- login.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/global.php b/admin/global.php index a71a06a..4e0c3fd 100755 --- a/admin/global.php +++ b/admin/global.php @@ -80,7 +80,7 @@ if (can_perform('canadminpanel')) } else { - BSFunctions::cookie(COOKIE_PREFIX . 'adminsession', null); + BSFunctions::cookie(COOKIE_PREFIX . 'adminsession', false); admin_login(); // do we need this message? $admin->error(T('Invalid admin session has been terminated.')); @@ -88,7 +88,7 @@ if (can_perform('canadminpanel')) } else { - BSFunctions::cookie(COOKIE_PREFIX . 'adminsession', null); + BSFunctions::cookie(COOKIE_PREFIX . 'adminsession', false); admin_login(); } diff --git a/includes/auth/auth_vbulletin.php b/includes/auth/auth_vbulletin.php index b6e6f02..27327ac 100644 --- a/includes/auth/auth_vbulletin.php +++ b/includes/auth/auth_vbulletin.php @@ -100,8 +100,8 @@ class AuthenticationVbulletin extends Authentication // ################################################################### function clearCookies() { - BSFunctions::cookie('bbpassword'); - BSFunctions::cookie('bbuserid'); + BSFunctions::cookie('bbpassword', false); + BSFunctions::cookie('bbuserid', false); } // ################################################################### diff --git a/login.php b/login.php index c310dfd..30d9ba3 100755 --- a/login.php +++ b/login.php @@ -90,7 +90,7 @@ if ($_REQUEST['do'] == 'logout') { $db->query("DELETE FROM " . TABLE_PREFIX . "adminsession WHERE sessionid = '" . $input->inputEscape(COOKIE_PREFIX . 'adminsession') . "'"); $auth->clearCookies(); - BSFunctions::cookie(COOKIE_PREFIX . 'adminsession', null); + BSFunctions::cookie(COOKIE_PREFIX . 'adminsession', false); $message->redirect(T('You have been logged out.'), ($_SERVER['HTTP_REFERER'] ? $_SERVER['HTTP_REFERER'] : 'index.php')); } else -- 2.43.5