mongoc_client_session_get_lsid - Man Page

Synopsis

const bson_t *
mongoc_client_session_get_lsid (mongoc_client_session_t *session);

Get the server-side "logical session ID" associated with this mongoc_client_session_t <> as a BSON document.

Parameters

Returns

A bson_t <https://www.mongoc.org/libbson/current/bson_t.html> that is valid only for the lifetime of session.

Author

MongoDB, Inc

Info

Jan 27, 2026 1.30.6 libmongoc