webCOMAND

Logout Web Service

Logout or close a session and potentially remove a corresponding cookie. Subsequent requests that use the session will be rejected.

Request

  • token: 'token' – Optional parameter to specify the user token. If it is not specified, the cookie will used to obtain the token instead. If a cookie is provided, a request for the client to remove the cookie will be included in the response.

Response

Logout only returns the Common Response Properties.

Example

$.ajax({
	url: 'https://<account>.webcomand.com/ws/logout',
	data: {
		sessionKey: 'key'
	},
	success: function( data ){
		var Result = data.result;
	}
});