I have implemented ajax request to populate my drop down fields. It is working Fine but when I stay idle for some time and select some value in drop down the ajax request gets 302 found response. Is it due to session out. Please let me know the solution, can we do some setting that it will never get response as 302 found.
相关问题
- How to catch an expected (and intended) 302 Ajax r
- how to solve “302 found” response after form submi
- Ajax Redirection Handling
- Rendering SoundCloud widget for a private track us
- How to add additional headers to 302 redirects in
相关文章
- Handling HTTP 302 Moved Temporarily requests in ne
- HTTP Builder/Groovy - lost 302 (redirect) handling
- What is the 302 error code that jQuery AJAX is thr
- Sitecore uses “302 found” to redirect users to my
- WebRequest - Prevent redirection
- Flutter - Handle status code 302 in POST request
- Safari fails CORS request after 302 redirect
- Java HttpURLConnection doesn't connect when I
In your code you should check whether a session is available, because when a GET/POST request is sent, there may be additional requests for images or other resources. Sessions won’t be available for those requests.
The 302 status code indicates that the resource you are requesting has redirected to another resource. If this is behind some authentication, or requiring a session to be active then yes, it would follow that the session timing out is responsible for the ajax resource being called to redirect to possibly a login screen maybe.
I would seriously recommend using something like Charles or Fiddler to track the requests being made.