> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblPreserveSessionMode

> XblPreserveSessionMode

Defines values used to indicate whether a match ticket is for a new game session or an existing session.

## Syntax

```cpp theme={null}
enum class XblPreserveSessionMode  : uint32_t  
{  
    Unknown,  
    Always,  
    Never  
}  
```

## Constants

| Constant | Description |
| - | - |
| Unknown | The server returned an unrecognized response. |
| Always | Always use an existing game session. This is for matching more players for a game session that is already created or in progress. |
| Never | Never use an existing game session. This is for matching players for a new game session. |

## Requirements

**Header:** matchmaking\_c.h

## See also

[matchmaking\_c](https://docs.xbox.com/reference/live/xsapi-c/matchmaking_c/matchmaking_c_members.md)


## Related topics

- [XblMatchTicketDetailsResponse](https://docs.xbox.com/reference/live/xsapi-c/matchmaking_c/structs/xblmatchticketdetailsresponse.md)
- [matchmaking_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/matchmaking_c/matchmaking_c_members.md)
- [XblMatchmakingCreateMatchTicketAsync](https://docs.xbox.com/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakingcreatematchticketasync.md)
- [Using SmartMatch matchmaking](https://docs.xbox.com/services/xbox-services/multiplayer/matchmaking/concepts/live-matchmaking-how-tos.md)
- [XblMultiplayerSessionWriteMode](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/enums/xblmultiplayersessionwritemode.md)
