Log Out the user

Please note that the RGS-CWS system considers a user account to be logged in to the RGS-CWS for 30 minutes after the last activity of the user was detected. After 30 minutes will pass from the last activity, the user is considered logged out.

If a new game session will be started from a different browser, then the older sessions will be terminated automatically and the user will be logged out and redirected to your exit_url or home page.

This endpoint can be used to log out the user by force, if you require this for any purpose.
It will terminate the session and then redirect him to your exit_url.

Input parameters:

Parameter

Mandatory

Description

Accepted values

*command

โœ…

You must send this with the value โ€œlogoutโ€ (cannot be changed)

logout

*login

โœ…

This is the username from your system.
If the username is not found in the RGS-CWS, an error will be returned.

any (string)

*apiusername

โœ…

API Username

(string)

*apipass

โœ…

API Password

(string)

Parameters marked with * are mandatory.

Output parameters:

a)If the login is invalid data or the update failed, the returned json response will be message: {"message":"ERROR"}

b)If no errors were encountered, the returned json response will be message: {"message":"OK"}