AxM Agents: How to handle idle and session timeouts when using AJAX methods.
RSA Access Manager 6.1 Agents
AxM Agents: How to handle idle and session timeouts when using AJAX methods. An application leveraging AJAX techniques to request server data generates an error if the users session or idle timeout has been exceeded. The type of error depends on how the event is trapped by the application developer.
AJAX methods should always check for error conditions when requesting server side data. If the response from the server is not http 200, then the application should handle the response as an error - and also take appropriate action. If the response is a 302 redirect as the result of forms based authentication, the application should abort the server data request and handle the redirection request. Here is a sample error handler that detects the error resulting from the idle timeout, then reloads the page by issuing a location.reload command. This causes the user to be redirected to the logon page when an idle or session timeout occurs, and reload the page: