Delete a Client Session

Deleting a client session Active login period for a user in WebEOC Nexus, visible to administrators who can view and terminate sessions through Sessions Manager. involves use of the logout endpoint.

logout endpoint description
Description Deletes a client session; no further REST calls can be made without calling the login method again
URL /sessions
Method DELETE
Parameters none

Review examples of how to use the logout endpoint in JavaScript and C# calls.

Examples

JavaScript Call

Copy Code
await fetch(`${baseUrl}/sessions`, { method: 'DELETE' })

C# Call

Copy Code
public async Task Logout()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
await httpClient.DeleteAsync($"{baseUrl}/sessions");
}
}