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

@return bool
Returns whether a session exists