Maintain a Client Session

To keep a client's session Active login period for a user in WebEOC Nexus, visible to administrators who can view and terminate sessions through Sessions Manager. open, disallow an automatic time-out due to inactivity and use the keepalive endpoint.

keepalive endpoint description
Description Maintains a client’s session, preventing an automatic time-based logout
URL /sessions
Method GET
Parameters None

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

Examples

JavaScript Call

Copy Code
await fetch(`${baseUrl}/sessions `)
.then((response) => response.json())

C# Call

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