WoodWing Help Center

Elvis 4 REST API - logout

Elvis 4 REST API - logout

GET/POST

http://yourserver.com/services/logout

What does it do?

Terminates your browser session. Use this to end a session using an AJAX call.

Parameters

This service has no parameters.

Return value

  • logoutSuccess. 'true'. Indicates that logout was successful.

Note: Logging out through AJAX won't work if you are doing cross-domain calls, since session cookies are not accepted when received through a cross-domain AJAX call. Use "logout and redirect" instead, see below.

Logout and redirect

GET/POST

http://yourserver.com/logout
    ?logoutSuccessUrl=<url>

Redirects to a 'success' URL after terminating the session. The URL can be a relative or absolute URL and can even redirect to a different server.

When no logoutSuccessUrl is specified, the user will be redirected to the configured landing page (by default this is the client install page).

Examples

AJAX logout with success

The following shows the response of a successful logout.

logout

http://demo.elvisdam.com/services/logout
{
      "logoutSuccess" : true
    }

Redirect logout

Ends the session and redirects to www.elvisdam.com.

logout
http://demo.elvisdam.com/logout
    ?logoutSuccessUrl=http%3A%2F%2Fwww.elvisdam.com
Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.