Cake\Network\Session::_timedOut PHP Метод

_timedOut() защищенный Метод

Returns true if the session is no longer valid because the last time it was accessed was after the configured timeout.
protected _timedOut ( ) : boolean
Результат boolean
    protected function _timedOut()
    {
        $time = $this->read('Config.time');
        $result = false;
        $checkTime = $time !== null && $this->_lifetime > 0;
        if ($checkTime && time() - $time > $this->_lifetime) {
            $result = true;
        }
        $this->write('Config.time', time());
        return $result;
    }