From: Michael Rasmussen Date: Fri, 5 Jun 2015 22:10:01 +0000 (+0200) Subject: Add check for valid session X-Git-Url: http://git.datanom.net/qtadmin.git/commitdiff_plain/034f5c5964c4a92a293a40ed9ed044cfcc46a91e Add check for valid session --- diff --git a/config.php b/config.php index 016f271..f361993 100644 --- a/config.php +++ b/config.php @@ -36,7 +36,7 @@ $CFG->session_timeout = 60; // 3 = info // 4 = debug // Default log level is error -$CFG->log_level = 4; +$CFG->log_level = 3; // Log method // stderr = Stand Error diff --git a/lib/utils.inc.php b/lib/utils.inc.php index c06729f..5c3a0cd 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -247,13 +247,15 @@ class Utils { global $CFG; $loggedIn = false; - $this->log("isLoggedIn", 4); + $this->log("isLoggedIn[1]\n".var_export($this->settings, true), 3); if ('' == session_id()) { $this->startSession(); } + $this->log("isLoggedIn[2]\n".var_export($this->settings, true), 3); $this->checkSession(); + $this->log("isLoggedIn[3]\n".var_export($this->settings, true), 3); if (isset($this->settings['user'])) { if ($this->settings['user'] != null) {