---
name: "mongoc_client_session_get_client"
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_client"
---

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

## SYNOPSIS

```
mongoc_client_t *
mongoc_client_session_get_client (const mongoc_client_session_t *session);
```

Returns the *mongoc\_client\_t* from which this session was created. See *mongoc\_client\_start\_session()*.

## PARAMETERS

- •

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

## RETURNS

A *mongoc\_client\_t* that should not be freed.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
