# Create a Client Session

## Basic Usage

@snippet api/mongocxx/examples/client_sessions/create/basic.cpp Example

## With Options

@snippet api/mongocxx/examples/client_sessions/create/with_options.cpp Example

# Use a Client Session

@see
- [Causal Consistency and Read and Write Concerns (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/causal-consistency-read-write-concerns/)

## Basic Usage

@snippet api/mongocxx/examples/client_sessions/use/basic.cpp Example

## With Transactions

@snippet api/mongocxx/examples/client_sessions/use/transactions.cpp Example
