SysInvalidateSessionForUser
Invalidates a specific session for a user.
| Service | Operation |
|---|---|
| playerState | SYS_INVALIDATE_SESSION_FOR_USER |
Method Parameters
| Parameter | Description |
|---|---|
| profileId | The profile ID of the user whose session should be invalidated. |
| sessionId | The specific session ID to invalidate. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Roblox
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var profileId = "a-profile-id";
var sessionId = "a-session-id";
var playerStateProxy = bridge.getPlayerstateServiceProxy();
var postResult = playerStateProxy.sysInvalidateSessionForUser(profileId, sessionId);
{
"service":"playerState",
"operation":"SYS_INVALIDATE_SESSION_FOR_USER",
"data":{
"profileId":"a-profile-id",
"sessionId":"a-session-id"
}
}
JSON Response
{
"data": {
"invalidatedCount": 1,
"invalidated": [
"lfpkobk5u0613avdc1pai5udpd"
],
"verification": true
},
"status": 200
}