src/Leevel/Session/Session.php
public function save(): void
    {
        if (!$this->isStart()) {
            throw new RuntimeException(
                'Session is not start yet.'
            );
        }

        $this->unregisterFlash();

        $this->connect->write($this->getId(), serialize($this->datas));

        $this->started = false;
    }
public function save(): void
    {
        if (!$this->isStart()) {
            throw new RuntimeException(
                'Session is not start yet.'
            );
        }

        $this->unregisterFlash();

        $this->connect->write($this->getId(), serialize($this->datas));

        $this->started = false;
    }
程序执行保存 session.