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.
Prerequisites
No prerequisites.
How It Works
- The server obtains a session token for each player (using impersonation or token exchange).
- The SDK's
StartSessionManualmethod 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.
Conclusion
You can now manage multi user state in a server context. For implementation details, see the impersonation how-to.