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

# XblPreserveSessionMode

> 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](/reference/live/xsapi-c/matchmaking_c/matchmaking_c_members)


## Related topics

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