If my webapp receives a JSON call from a user who has a stale cookie due to inactivity, my webapp's framework will return a 303 attempting to redirect the browser to a login page.
I'd want to capture this in my callback function but it doesn't seem to execute when encountering a redirect. How do I deal with redirects in JQuery ajax calls? I'm just looking to refresh the page if the user attempts to make a JSON call after being logged out as that will redirect the user to the login page by default.