Browse Source

Merge branch 'master' into 3.next

ADmad 7 years ago
parent
commit
51f46efd50
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Http/Session.php

+ 2 - 2
src/Http/Session.php

@@ -608,11 +608,11 @@ class Session
      */
     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;
         }