* [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
This commit is contained in:
nuxsmin
2018-09-01 22:42:16 +02:00
parent af8b21fd10
commit 549fbce589

View File

@@ -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) {