public function read($sessionId)
{
$maxLifetime = (int) ini_get('session.gc_maxlifetime');
$options = $this->getOptions();
$row = $this->connection->fetchOne(sprintf('SELECT %s FROM %s WHERE %s = ? AND COALESCE(%s, %s) + %d >= ?', $this->connection->escapeIdentifier($options['column_data']), $this->connection->escapeIdentifier($options['table']), $this->connection->escapeIdentifier($options['column_session_id']), $this->connection->escapeIdentifier($options['column_modified_at']), $this->connection->escapeIdentifier($options['column_created_at']), $maxLifetime), Db::FETCH_NUM, [$sessionId, time()]);
if (empty($row)) {
return '';
}
return $row[0];
}