Skip to content

Commit

Permalink
Fix regression in session handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jul 31, 2018
1 parent 0a7f75e commit 0124fee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Session.php
Expand Up @@ -608,11 +608,11 @@ public function renew()
*/
protected function _timedOut()
{
$time = (int)$this->read('Config.time');
$time = $this->read('Config.time');
$result = false;

$checkTime = $time !== null && $this->_lifetime > 0;
if ($checkTime && (time() - $time > $this->_lifetime)) {
if ($checkTime && (time() - (int)$time > $this->_lifetime)) {
$result = true;
}

Expand Down

0 comments on commit 0124fee

Please sign in to comment.