posted 12 years ago
Howdy,
I'm making an ajax request using jQuery and if the user's session has expired the response that I get is a 302 moved. jQuery in that case is making another request to the new path which is the login page. I want to show the user a message if the status is 302 but I'm not able to achieve this. This is the code I'm using
This is not working though, jQuery is still making another request if the user is logged out. I also tried this but got the same result
Any help would be appreciated...