src/CsrfMiddleware.php
public function setSessionId(string $sessionId): void
    {
        if (empty($sessionId)) {
            throw new RuntimeException('CSRF middleware failed. SessionId not found!');
        }

        $this->sessionId = $sessionId;
    }
public function setSessionId(string $sessionId): void
    {
        if (empty($sessionId)) {
            throw new RuntimeException('CSRF middleware failed. SessionId not found!');
        }

        $this->sessionId = $sessionId;
    }
public function setSessionId ( string $ sessionId ) : void { if ( empty ( $ sessionId ) ) { throw new RuntimeException ( 'CSRF middleware failed. SessionId not found!' ) ; } $ this -> sessionId = $ sessionId ; }
Set session id.

@param string $sessionId the session id
Set session id .