From 034f5c5964c4a92a293a40ed9ed044cfcc46a91e Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sat, 6 Jun 2015 00:10:01 +0200 Subject: [PATCH] Add check for valid session --- config.php | 2 +- lib/utils.inc.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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) { -- 2.39.2