bug 1176: Don't clean up the MySQL connection when doing session cleanup
authorBenny Baumann <BenBE@geshi.org>
Wed, 19 Jun 2013 20:53:39 +0000 (22:53 +0200)
committerBenny Baumann <BenBE@geshi.org>
Wed, 19 Jun 2013 20:53:39 +0000 (22:53 +0200)
includes/loggedin.php

index eb09011..f4548a5 100644 (file)
@@ -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);