Sometimes, a user leaves an application without clicking on logout button, or do shutting down or hibernating of its Machine, or even close all sessions (pages) related to the application domain. So the server cannot knows that the user has been logged out! In our case, we have a "time spent on last session" parameter to check the time of the last session activated for each user.
We need to auto Logout the user when he leaves the application without doing logout action! Is there a process how to do it?