---
name: "mongoc_session_opts_clone"
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_session_opts_clone"
---

# mongoc\_session\_opts\_clone(3)

## SYNOPSIS

```
mongoc_session_opt_t *
mongoc_session_opts_clone (const mongoc_session_opt_t *opts);
```

Create a copy of a session options struct.

## PARAMETERS

- •

  **opts**: A *mongoc\_session\_opt\_t*.

## RETURNS

A new *mongoc\_session\_opt\_t* that must be freed with *mongoc\_session\_opts\_destroy()*.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
