From 0124feee8c6711cd9e1004988ab7a16d687a1aa5 Mon Sep 17 00:00:00 2001 From: Mark Sch Date: Tue, 31 Jul 2018 23:18:24 +0200 Subject: [PATCH] Fix regression in session handling --- src/Http/Session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Session.php b/src/Http/Session.php index 55d3c866ec8..3ab2254ff56 100644 --- a/src/Http/Session.php +++ b/src/Http/Session.php @@ -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; }