Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

auto logout when token should expire #225


User avatar
0
ashvanker created

how do i configure to automatically log out when the token should have expired.

i have my token set to 20mins, but the system does not automatically log me out after 20mins of no activity. actually, it does not log me out at all. (tried overnight)

Thanks


2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    There is no such an automatic system in ABP. You can implement your own. You may do it in client side by a timer or server side. If you understand it on server side, than you should send a signal to client to logout (you may use SignalR). So, it's not very simple, but you can implement if you really need :).

  • User Avatar
    0
    lcyhjx created

    My opinion is that this should be done in front-end, for service request, if get a error message code with no user login, then the front-end should catch the error and redirect to the login page to get a new token