hi all, I'm newbie in jQuery, have been doing research about jQuery API but not really sure about the answer of my problems. I have a web application using single sign-on provided by WebSSO. The problem is, whenever there is an AJAX call and session already time-out, WebSSO will sent redirect request and it will make the AJAX break since AJAX can't handle redirect response.
Is there anyway to handle 302 redirect, so I can redirect the browser to "Location" header returned by Web SSO ? jQuery.ajax( { url: "/blabla/blah.jsp", complete: function(xhr, textStatus){ if(xhr.status=="302"){ location.href=xhr.getResponseHeader("Location"); return false; } } } ); Thank you in advance.