Logout

Prev Next

This URL allows logging out from Intelligent Sandbox. It generates either a response or an error message. Proper logout must be performed in order to clear the session information; else, subsequent logon is not allowed until session timeout.

Resource URL

DELETE https://<TIS_IP>/php/session.php

Input parameters

The following HTTP headers should be specified in the resource URL request:

  • Accept: application/vnd.ve.v1.0+json

  • Content-Type: application/json

  • VE-SDK-API: Base64 encoded "session:user id" string

Input parameters are only the following mandatory header parameters that you must be supplied in all calls.

Input parameter

Description

Data type

session

Logged on session id.

String

userId

Logged on user id.

String

Output parameters

Output parameter

Description

Data type

success

Success = true / false gives the logout success status.

boolean

results

Return value. This value is 0 if logout is successful, otherwise an error message is returned

number

Example

Input

In the HTTP header:

"Accept: application/vnd.ve.v1.0+json"
"Content-Type: application/json"
"VE-SDK-API:" + base64 encoded "u5hiesvp9nmv9ti44vnpoi27b5:1" string

Output

Sample response for correct credentials:

{"success": true, "results": {"return": 0} }

Error information

HTTP Error code

errorMessage

401

Invalid credentials.

415

Invalid accept header or content type header.