---
name: "mongoc_client_session_get_opts"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_client_session_get_opts"
---

# mongoc\_client\_session\_get\_opts(3)

## SYNOPSIS

```
const mongoc_session_opt_t *
mongoc_client_session_get_opts (const mongoc_client_session_t *session);
```

Get a reference to the *mongoc\_session\_opt\_t* with which this session was configured.

## PARAMETERS

- •

  **session**: A *mongoc\_client\_session\_t*.

## RETURNS

A *mongoc\_session\_opt\_t* that is valid only for the lifetime of **session**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
