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 have reproduced this behavior, and it seems that the VaadinSession is not notified about the session invalidation after userSessions.invalidate() . This may be the reason for the system notification with an error message that cannot be hidden by the custom system messages provider.