src/Leevel/Session/Session.php
public function setId(?string $id = null): void
    {
        $this->id = $id ?: $this->generateSessionId();
    }
public function setId(?string $id = null): void
    {
        $this->id = $id ?: $this->generateSessionId();
    }
设置 SESSION ID.

@param string $id