Remove unset removes the session settings

This commit is contained in:
FusionPBX
2023-04-18 11:28:24 -06:00
committed by GitHub
parent fd20067433
commit 6f489f0cf3

View File

@@ -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();
}
}