src/Viserio/Component/Session/Handler/CookieSessionHandler.php
protected function doRead($sessionId): string
    {
        $cookies = $this->request->getCookieParams();

        if (! isset($cookies[$sessionId])) {
            return '';
        }

        $decoded = \json_decode(\base64_decode($cookies[$sessionId], true), true);

        if (\is_array($decoded) &&
            (isset($decoded['expires']) && Chronos::now()->getTimestamp() <= $decoded['expires'])
        ) {
            return $decoded['data'];
        }

        return '';
    }
protected function doRead($sessionId): string
    {
        $cookies = $this->request->getCookieParams();

        if (! isset($cookies[$sessionId])) {
            return '';
        }

        $decoded = \json_decode(\base64_decode($cookies[$sessionId], true), true);

        if (\is_array($decoded) &&
            (isset($decoded['expires']) && Chronos::now()->getTimestamp() <= $decoded['expires'])
        ) {
            return $decoded['data'];
        }

        return '';
    }
{@inheritdoc}