In the application that I am developing, I have to store the time that some specific users remain in the application, unfortunately, in web applications there are several ways to exit the system.
1.- The user will log out. 2.- Duration of the user session. 3.- The user closes the window. 4.- The user enters the URL of another address in the address bar.
The first one is pretty simple, as the application takes control of the logout process. But in others it becomes difficult.
What would you do to solve this problem?
source share