> ## 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.

# XblMultiplayerManagerGameSessionSessionReference

> XblMultiplayerManagerGameSessionSessionReference

# XblMultiplayerManagerGameSessionSessionReference

Retrieves the session reference for the game session.

## Syntax

```cpp theme={null}
const XblMultiplayerSessionReference* XblMultiplayerManagerGameSessionSessionReference(  
)  
```

### Parameters

### Return value

Type: const XblMultiplayerSessionReference\*

A pointer to the session reference for the game session, or null if a game session doesn't exist. The memory for the returned pointer remains valid until the next call to [XblMultiplayerManagerDoWork](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerdowork).

## Remarks

This function retrieves a pointer to the session reference for a game session, if the game session exists for the lobby session in Multiplayer Manager. The session reference contains the service configuration ID (SCID), session template, and session name for the game session, and uniquely identifies the game session in Multiplayer Session Directory (MPSD). For more information about session references, see [Multiplayer Session advanced topics](/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-details).

## Requirements

**Header:** multiplayer\_manager\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[multiplayer\_manager\_c](/reference/live/xsapi-c/multiplayer_manager_c/multiplayer_manager_c_members)\
[XblMultiplayerManagerGameSessionCorrelationId](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessioncorrelationid)\
[XblMultiplayerManagerLobbySessionSessionReference](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionsessionreference)


## Related topics

- [XblMultiplayerManagerLobbySessionSessionReference](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionsessionreference.md)
- [XblMultiplayerManagerGameSessionActive](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionactive.md)
- [XblMultiplayerManagerGameSessionConstants](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionconstants.md)
- [XblMultiplayerManagerGameSessionCorrelationId](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessioncorrelationid.md)
- [XblMultiplayerManagerGameSessionIsHost](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionishost.md)
