We’re using Scheduler .NET in MVC 5. How do we capture session timeout in an ajax call? We know that when the session expires MVC captures the error and returns ok (status 200) and tries to redirect the user to the login page but we have resolved that issue so that no redirect is performed. Still we cannot capture the 401 unauthorized error in the scheduler. We have tried:
dhtmlxError.catchError("ALL", function (type, desc, erData) {
alert('ajax error');
});
But the error is not caught. Instead we get a javascript error because data is empty. What can we do instead?