Cake\Network\Session::_hasSession PHP Method

_hasSession() protected method

Returns whether a session exists
protected _hasSession ( ) : boolean
return boolean
    protected function _hasSession()
    {
        return !ini_get('session.use_cookies') || isset($_COOKIE[session_name()]) || $this->_isCLI;
    }