How can the user be directed to a login page when an ajax call requires the user to be logged-in

How can the user be directed to a login page when an ajax call requires the user to be logged-in

accuroaccuro Posts: 1Questions: 1Answers: 0

The context: Implemented DataTables using an ajax call for the data. This works fine but unlike the HTML pages, JavaScript and other page elements which are available without login, the ajax call fetches the data from a (IBM Domino) server that requires login. The issue: The above works fine as long as the user has a valid session on the server, once logged out DataTables correctly prompts that there is an issue fetching the data. What I would like to do is be able to redirect to the login page or at least render a user friendly message communicating the fact that login is required. Any help is appreciated, Chris

This discussion has been closed.