src/ministruts/Request.php
public function hasSessionId() {
        $name = session_name();

        if (ini_get_bool('session.use_cookies'))
            if (isset($_COOKIE[$name]))
                return true;

        if (!ini_get_bool('session.use_only_cookies'))
            if (isset($_REQUEST[$name]))
                return true;

        return false;
    }
public function hasSessionId() {
        $name = session_name();

        if (ini_get_bool('session.use_cookies'))
            if (isset($_COOKIE[$name]))
                return true;

        if (!ini_get_bool('session.use_only_cookies'))
            if (isset($_REQUEST[$name]))
                return true;

        return false;
    }
public function hasSessionId ( ) { $ name = session_name ( ) ; if ( ini_get_bool ( 'session.use_cookies' ) ) if ( isset ( $ _COOKIE [ $ name ] ) ) return true ; if ( ! ini_get_bool ( 'session.use_only_cookies' ) ) if ( isset ( $ _REQUEST [ $ name ] ) ) return true ; return false ; }
Whether a valid session id was transmitted with the request. An invalid id is a URL based session id when the php.ini
setting 'session.use_only_cookies' is enabled.

@return bool
Whether a valid session id was transmitted with the request . An invalid id is a URL based session id when the php . ini setting session . use_only_cookies is enabled .