How to identify if the session is being closed due to timeout/inactivity?

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
jramirez-jh
Hero Member
Hero Member
Posts: 21
Joined: 14 Jun 2021, 23:39

How to identify if the session is being closed due to timeout/inactivity?

Post by jramirez-jh »

I'm facing a scenario where I need to identify orphan sessions, those that for some reason were abandoned (the client abruptaly was closed due to reboot, power outage, etc).

In the handling of the event SessionManager.SessionClosing I am only receiving the Reason parameter as "Closing", nothing that says much about if the real reason was the inactivity of the client. Do the SDK offer an easy mechanism to identify this?

Post Reply