Provided by: libmongoc-doc_2.2.1-1_all 

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
• session: A mongoc_client_session_t <>.
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
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 2025 MONGOC_CLIENT_SESSION_GET_LSID(3)