Skip to content

Commit

Permalink
Improved readability
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Nov 23, 2017
1 parent bc1678c commit 4faac8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Model/Datasource/CakeSession.php
Expand Up @@ -593,9 +593,9 @@ protected static function _configureSession() {
);
}
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);
}
}

Expand Down

0 comments on commit 4faac8e

Please sign in to comment.