src/SaveHandler/Database/Database.php
public function read($id)
    {
        $idColumn   = $this->options->getIdColumn();
        $nameColumn = $this->options->getNameColumn();
        $adapter    = $this->getAdapter();

        $sessionData = [
            $idColumn   => $id,
            $nameColumn => $this->sessionName
        ];

        $session = $adapter->select($sessionData);

        if ($session) {
            if ($adapter->isValid($session)) {
                return $this->sanitizeDataRead($id, $adapter->getDataValue($session));
            }

            $this->destroy($id);
        }

        return '';
    }
public function read($id)
    {
        $idColumn   = $this->options->getIdColumn();
        $nameColumn = $this->options->getNameColumn();
        $adapter    = $this->getAdapter();

        $sessionData = [
            $idColumn   => $id,
            $nameColumn => $this->sessionName
        ];

        $session = $adapter->select($sessionData);

        if ($session) {
            if ($adapter->isValid($session)) {
                return $this->sanitizeDataRead($id, $adapter->getDataValue($session));
            }

            $this->destroy($id);
        }

        return '';
    }
Read session data.

@param string $id

@return mixed
@throws \Zend\Json\Exception\RuntimeException