I need to add a report in my app of how much time a User is logged in.
I know it will not be accurate because if the User closes the browser, the session will live around 30 minutes more.
But with all the limitations, how do I know when a session has expired and record that time even if there is no request present?