#380: Add a way to handle redirecting to the login page when an AJAX call fails because of a login timeout