Improved readability

This commit is contained in:
Mischa ter Smitten 2017-11-23 10:06:14 +01:00
parent bc1678cf2a
commit 4faac8e09a

View file

@ -593,9 +593,9 @@ class CakeSession {
); );
} }
Configure::write('Session', $sessionConfig); Configure::write('Session', $sessionConfig);
static::$sessionTime = static::$time + ($sessionConfig['timeout'] * 60);
if (static::$_useForwardsCompatibleTimeout) {
static::$sessionTime = static::$time; static::$sessionTime = static::$time;
if (!static::$_useForwardsCompatibleTimeout) {
static::$sessionTime += ($sessionConfig['timeout'] * 60);
} }
} }