You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idletimeout plugins sends the KeepAlive request at regular intervals. There comes a time when the application will return a HTTP 403 (Forbidden) because the user session no longer authenticates (for whatever permission reasons).
I want to handle the 403 error to log out the user. How do I do this?
(n.b. I have the timeout working properly when the session is about to timeout but sometimes the session is bumped out, either because the application is restarted or otherwise).
The text was updated successfully, but these errors were encountered:
I'm able to get feedback from the application when I get a 403 response from the AJAX request sent from idleTimeout. I need to check again, if there are any callbacks of the plugin that exposes the error callback of the AJAX call.
I usually like to implement my global function that does the redirecting based on the HTTP status code from each AJAX call. If this is not possible, I can always try the Global .ajaxError() callback to trap the 403 error. It should work like window.onerror only that it will capture ajax call instead of any JavaScript error happening in the browser.
The idletimeout plugins sends the KeepAlive request at regular intervals. There comes a time when the application will return a HTTP 403 (Forbidden) because the user session no longer authenticates (for whatever permission reasons).
I want to handle the 403 error to log out the user. How do I do this?
(n.b. I have the timeout working properly when the session is about to timeout but sometimes the session is bumped out, either because the application is restarted or otherwise).
The text was updated successfully, but these errors were encountered: