Base solution for your next web application
Open Closed

How to invalidate user session when the user closes the application tab, but keeps the browser open? #10919


User avatar
0
hazel.gutierrez created

Prerequisites

  • Product version: 10.5
  • Product type (Angular or MVC): Angular
  • Product framework type: .Net Core

The ABP session timeout mechanism relies on the Angular UI being open to prompt the user of the session timeout, and then, timing out the session when the user does not respond.

Is there a way to timeout the session when the user closes the application tab, but not the browser itself?

We are having an issue where a user will reopen a tab, after the session timeout period, and the session is still open, due to the fact that no call is made to the server to invalidate/logout the session.


1 Answer(s)
  • User Avatar
    0
    gterdem created
    Support Team

    You can try storing tokens in session storage instead of local storage. That should invalidate your session.