From 056881f58c4c8d4b05740c1aeeb308af1753a6fd Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Wed, 19 Jun 2013 22:53:39 +0200 Subject: bug 1176: Don't clean up the MySQL connection when doing session cleanup --- includes/loggedin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/loggedin.php b/includes/loggedin.php index eb09011..f4548a5 100644 --- a/includes/loggedin.php +++ b/includes/loggedin.php @@ -27,7 +27,7 @@ $_SESSION['profile'] = ""; foreach($_SESSION as $key => $value) { - if($key == '_config') + if($key == '_config' || $key == 'mconn') continue; if(is_int($key) || is_string($key)) unset($_SESSION[$key]); @@ -53,7 +53,7 @@ $_SESSION['profile'] = ""; foreach($_SESSION as $key => $value) { - if($key == '_config') + if($key == '_config' || $key == 'mconn') continue; if(is_int($key) || is_string($key)) unset($_SESSION[$key]); @@ -72,7 +72,7 @@ $_SESSION['profile'] = ""; foreach($_SESSION as $key => $value) { - if($key == '_config') + if($key == '_config' || $key == 'mconn') continue; unset($_SESSION[$key]); unset($$key); -- cgit v1.2.1