We are using OPENAM to protect rich we applications. The application is making a lot of AJAX calls to upadte the UI. However after a ertain time when the openam session cookie has expired, the AJAX calls returns a 302 redirecting it to a login page.
This is annoying behaviour for us as the AJAX client expects 401 to know it needs to redirect the user to login page.
Is it possible in openam to distinguish ajax calls and subsequently not send redirects ?