From 549fbce589e6d2df675e571cf0ea3c94d56cb6c1 Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Sat, 1 Sep 2018 22:42:16 +0200 Subject: [PATCH] * [ADD] New preset option for session timeout based on client IP address and network. Related #912 * [MOD] Improved IP addresses handling * [MOD] Code refactoring * [FIX] Minor bugfixes --- app/modules/web/Init.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/modules/web/Init.php b/app/modules/web/Init.php index f9291ea1..f1f9c2a9 100644 --- a/app/modules/web/Init.php +++ b/app/modules/web/Init.php @@ -316,6 +316,8 @@ final class Init extends ModuleBase if ($this->isIndex || $timeout === null) { $userTimeout = $this->getSessionTimeoutForUser($timeout) ?: $this->configData->getSessionTimeout(); + logger('Session timeout: ' . $userTimeout); + return $this->context->setSessionTimeout($userTimeout); } } catch (\Exception $e) {