src/Web/Sessions/SessionArchiveInDb.php
protected function getInternal($id, $unserialize = true)
    {
        return $this->selectQuery()->where(['sid' => $id])
            ->one($this->db)
            ->then(function($row) use ($unserialize) {
                return $unserialize ? $this->getHandler()->unserializeData($row['data']) : $row;
            });
    }
protected function getInternal($id, $unserialize = true)
    {
        return $this->selectQuery()->where(['sid' => $id])
            ->one($this->db)
            ->then(function($row) use ($unserialize) {
                return $unserialize ? $this->getHandler()->unserializeData($row['data']) : $row;
            });
    }
Get entry from DB
@param string $id
@param bool $unserialize
@return ExtendedPromiseInterface