Skip to content

In a Server Context

In a server context, managing multiple users differs from a client game. The server typically impersonates players or exchanges tokens to obtain a Game API session token for each player, then uses the SDK to manage multi user state and make requests for many users in a secure context.

No prerequisites.

  • The server obtains a session token for each player (using impersonation or token exchange).
  • The SDK's StartSessionManual method adds each session to the multi user state.
  • You can then make API calls for any player by specifying their ULID.
  • Use the techniques from End Sessions and Manage State so you have the correct sessions active and ready in your server context.

You can now manage multi user state in a server context. For implementation details, see the impersonation how-to.