src/Viserio/Component/Session/Handler/CookieSessionHandler.php
protected function doWrite($sessionId, $data): bool
    {
        $this->cookie->queue(
            $sessionId,
            \base64_encode(\json_encode(
                [
                    'data'    => $data,
                    'expires' => Chronos::now()->addSeconds($this->lifetime)->getTimestamp(),
                ],
                \JSON_PRESERVE_ZERO_FRACTION
            )),
            $this->lifetime
        );

        return true;
    }
protected function doWrite($sessionId, $data): bool
    {
        $this->cookie->queue(
            $sessionId,
            \base64_encode(\json_encode(
                [
                    'data'    => $data,
                    'expires' => Chronos::now()->addSeconds($this->lifetime)->getTimestamp(),
                ],
                \JSON_PRESERVE_ZERO_FRACTION
            )),
            $this->lifetime
        );

        return true;
    }
{@inheritdoc}