invalidateSessions()

Ends one or more sessions specified by a sessionId.

See sessionId.

Use this call to end one or more sessions.

You can also use logout() to end just one session, the session of the logged-in user.

This sample invalidates a set of sessions. The method in this sample takes an array of session IDs passed in as String values. The method then calls invalidateSessions() with this array and then checks the results for any errors.

This sample invalidates a set of sessions. The method in this sample takes an array of session IDs passed in as String values. The method then calls invalidateSessions() with this array and then checks the results for any errors.

NameTypeDescription
sessionIdsstring[]One or more sessionId strings. Limit 200. You can obtain your sessionId from the SessionHeader.

InvalidateSessionsResult[]

UnexpectedErrorFault