From 6f489f0cf3f21c157f6ce98311bd7e4cd7e1c71a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 18 Apr 2023 11:28:24 -0600 Subject: [PATCH] Remove unset removes the session settings --- core/authentication/resources/classes/plugins/database.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php index 3eaa890a69..30802f95fb 100644 --- a/core/authentication/resources/classes/plugins/database.php +++ b/core/authentication/resources/classes/plugins/database.php @@ -27,14 +27,11 @@ class plugin_database { //already authorized if (isset($_SESSION['authentication']['plugin']['database']) && $_SESSION['authentication']['plugin']['database']["authorized"]) { - //echo __line__; return; } else { if (isset($_SESSION['authentication']['plugin']['database']) && !$_SESSION['authentication']['plugin']['database']["authorized"]) { //authorized false - session_unset(); - session_destroy(); } }