Read data from the session dirver

@param string		$id		The session id key.
@return array
505628
public function read( $id )
	{
		$this->inital_session_id = $id;
		
		if ( $data = \DB::select( $this->table )->where( 'id', $id )->one( $this->database ) )
		{
			$session_data = unserialize( $data->content );
			
			foreach( $this->index_fields as $field ) 
			{
				$session_data[$field] = $data->$field;
			}
			
			return $session_data;
		}
		
		return array();
	}
253385
public function readSession($id)
    {
        $data = $this->ssdbHandle->get($this->calculateKey($id));
        return $data === false ? '' : $data;
    }
173052
public function read( $id ) {

		$id = $this->getKey( $id );

		// If possible use the raw data from the internal cache
		// without unserialization
		if ( $this->internalCache->contains( $id ) ) {
			$data = $this->internalCache->fetch( $id );
		} elseif ( $this->cache->contains( $id ) ) {
			$data = unserialize( $this->cache->fetch( $id ) );
			$this->internalCache->save( $id, $data );
		} else {
			$data = array();
		}

		$container = new Container( $id, (array)$data );
		$container->setExpiryInSeconds( $this->expiry );

		return $container;
	}
145816
public function read($sessionId)
    {
        if ($this->get_lock($sessionId) !== false) {
            // Needed by write() to detect session_regenerate_id() calls
            if (!$this->_session_id) {
                $this->_session_id = $sessionId;
            }
            $query = $this->newQuery()
                ->select('timestamp', 'data')
                ->where('id', $sessionId);

            if ($this->_config['match_ip']) {
                $query->where('ip_address', $_SERVER['REMOTE_ADDR']);
            }

            if (($result = $query->first()) === null) {
                // PHP7 will reuse the same SessionHandler object after
                // ID regeneration, so we need to explicitly set this to
                // false instead of relying on the default ...
                if ($this->_session_id === $sessionId) {
                    $this->row_exists = false;
                }
                $this->_fingerprint = md5('');
                return '';
            }

            $this->row_exists = true;

            if ($result->timestamp < (time() - $this->_config['expiration'])) {
                $this->_fingerprint = md5('');
                return '';
            }
            $result = $result->data;
            $this->_fingerprint = md5($result);
            return $result;
        }
        $this->_fingerprint = md5('');
        return '';
    }
820856
public function read($session_id)
    {
        $result = '';

        if ($this->getTable()->isConnected())
        {
            $row = $this->_table->select($session_id, KDatabase::FETCH_ROW);

            if (!$row->isNew()) {
                $result = $row->data;
            }
        }

        /*
         * It turns out that session_start() doesn't like the read method of a custom session handler
         * returning false or null if there's no session in existence.
         *
         * See: https://stackoverflow.com/a/48245947
         * See: http://php.net/manual/en/function.session-start.php#120589
         */
        return $result !== null ? $result : '';

    }
759539
public function read($id)
    {
        // Create the params for the UpdateItem operation so that a lock can be
        // set and item returned (via ReturnValues) in a one, atomic operation.
        $params = [
            'TableName'        => $this->config['table_name'],
            'Key'              => $this->formatKey($id),
            'Expected'         => ['lock' => ['Exists' => false]],
            'AttributeUpdates' => ['lock' => ['Value' => ['N' => '1']]],
            'ReturnValues'     => 'ALL_NEW',
        ];

        // Acquire the lock and fetch the item data.
        $timeout  = time() + $this->config['max_lock_wait_time'];
        while (true) {
            try {
                $item = [];
                $result = $this->client->updateItem($params);
                if (isset($result['Attributes'])) {
                    foreach ($result['Attributes'] as $key => $value) {
                        $item[$key] = current($value);
                    }
                }
                return $item;
            } catch (DynamoDbException $e) {
                if ($e->getAwsErrorCode() === 'ConditionalCheckFailedException'
                    && time() < $timeout
                ) {
                    usleep(rand(
                        $this->config['min_lock_retry_microtime'],
                        $this->config['max_lock_retry_microtime']
                    ));
                } else {
                    break;
                }
            }
        }
    }
731570
protected function _read( $id ) {
		global $wpdb;
		$session_id = $this->sanitize( $id );

		$session = $wpdb->get_row(
			$wpdb->prepare(
				"SELECT * FROM {$wpdb->prefix}sm_sessions WHERE session_key = %s",
				esc_sql( $session_id )
			),
			ARRAY_A
		);

		if ( $session === null ) {
			return false;
		}

		return $session['session_value'];
	}
1326036
public function read($id)
    {
        $rows = $this->tableGateway->select(array(
            $this->options->getIdColumn()   => $id,
            $this->options->getNameColumn() => $this->sessionName,
        ));

        if ($row = $rows->current()) {
            if ($row->{$this->options->getModifiedColumn()} +
                $row->{$this->options->getLifetimeColumn()} > time()) {
                return base64_decode($row->{$this->options->getDataColumn()});
            }
            $this->destroy($id);
        }
        return '';
    }
844666
public function read($id)
    {
        return $this->app['db']
            ->select('session_data')
            ->from(self::TABLENAME)
            ->where('id', $id)
            ->scalar();
    }
620295
public function read($id = null)
    {
        return ($id != null)
            ? $this->findByID($id)
            : $this->newModel();
    }
799160
public function readSession($id)
	{
		$db=$this->getDbConnection();
		if($db->getDriverName()=='sqlsrv' || $db->getDriverName()=='mssql' || $db->getDriverName()=='dblib')
			$select='CONVERT(VARCHAR(MAX), data)';
		else
			$select='data';
		$data=$db->createCommand()
			->select($select)
			->from($this->sessionTableName)
			->where('expire>:expire AND id=:id',array(':expire'=>time(),':id'=>$id))
			->queryScalar();
		return ($data===null || $data===false)?'':$data;
	}
630121
public function read($id)
    {
        try {
            $result = $this->db->from($this->table)
                ->where($this->columns['id'])->eq($id)
                ->column($this->columns['data']);

            return $result === false ? '' : $result;
        } catch (PDOException $e) {
            return '';
        }
    }
259163
public function read($sessionId)
    {
        $sessionData = $this->_cache->get($sessionId);
        if (empty($sessionData) === false) {
            $this->_cache->set($sessionId, $sessionData, array('expiry' => $this->_sessionExpiryInterval));

            return $sessionData;
        }

        $sql    = 'SELECT SESSION_DATA FROM tbl_sessions where SESSION_ID=:SESSID';
        $select = $this->_db->prepare($sql);
        $select->execute(array(':SESSID' => $sessionId));
        $result = $select->fetchColumn();
        if (empty($result) === false) {
            $this->_cache->set($sessionId, $result, array('expiry' => $this->_sessionExpiryInterval));

            return $result;
        }

        return '';

    }
1036355
public function read($id)
    {
        $sql = 'SELECT ' . $this->config['dataColumn'] . ' FROM ' . $this->config['name']
            . ' WHERE ' . $this->config['primary'] . ' = ?'
            . ' AND ' . $this->config['modifiedColumn'] . ' + ' . $this->config['lifetimeColumn'] . ' >= ?';

        $result = $this->fetchOne($sql, array($id, time()));

        if (!$result) {
            $result = '';
        }

        return $result;
    }
356486
protected function _read( $id ) {
		$session_id = $this->sanitize( $id );

		$data    = get_option( "_wp_session_$session_id" );
		$expires = intval( get_option( "_wp_session_expires_$session_id" ) );
		if ( false !== $data ) {
			$item = new Option( $data, $expires );
			if ( ! $item->is_valid() ) {
				$this->_delete( $session_id );

				return false;
			}

			return $item->data;
		}

		return false;
	}
768798
public function read($id)
    {
        // Get the session data from the database table.
        $query = $this->db->getQuery(true);
        $query->select($this->db->quoteName($this->options['data_col']))
            ->from($this->db->quoteName($this->options['table']))
            ->where($this->db->quoteName($this->options['id_col']) . ' = ' . $this->db->quote($id));

        $this->db->setQuery($query);

        return (string) $this->db->loadResult();
    }
229889
public function read(/*# string */ $session_id)/*# : string */
    {
        $file = $this->getSessionFile($session_id);
        $content = @file_get_contents($file);
        if (false === $content) {
            $content = 'a:0:{}';
        }
        return $content;
    }