In a Server Context
In a server context, managing multiple users is different 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.
How it Works
The server obtains a session token for each player (using impersonation or token exchange).
The SDK's
StartSessionManual
method is used to add each session to the multi user state.You can then make API calls for any player by specifying their ULID.
Remember to use all the techniques from our guide on how to end sessions and manage state so that you have the correct sessions active and ready in your server context.
For implementation details, refer to our impersonation how to
Last updated