In the audit menu, session management. I have a list of logged users.
When I want to kick an user from the app, I select the session and click on the button “Invalidate”, this cause an error on the user on the next request of the user that have been kicked that says: Invalid JSON response from server: This session has been expired (possibly due to multiple concurrent logins being attempted as the same user) and don’t redirect to the login, only redirect to the login on second request or if the user do an F5 to update the page.
How I can manage this error to not show any message and redirect directly to the login?
I appreciate any helps. Thanks