src/Http/Cookie/Cookie.php
public function expired($onSessionExpires = false)
    {
        if (!$this->_data['expires'] && $onSessionExpires) {
            return true;
        }

        return $this->_data['expires'] < time() && $this->_data['expires'];
    }
public function expired($onSessionExpires = false)
    {
        if (!$this->_data['expires'] && $onSessionExpires) {
            return true;
        }

        return $this->_data['expires'] < time() && $this->_data['expires'];
    }
public function expired ( $ onSessionExpires = false ) { if ( ! $ this -> _data [ 'expires' ] && $ onSessionExpires ) { return true ; } return $ this -> _data [ 'expires' ] < time ( ) && $ this -> _data [ 'expires' ] ; }
Checks if the Cookie expired.

@param  boolean $onSessionExpires Sets to `true` to check if the Cookie will expires when the session expires.
@return boolean
Checks if the Cookie expired .