Browser waits for ajax call to complete even after abort has been called (jQuery)

Thank you for your replies! It turns out I was completely wrong about this being a browser issue – the problem was on the server. ASP.NET serializes requests of the same session that require session state, so in this case, the next page didn’t begin processing on the server until those ajax-initiated requests completed.

Unfortunately, in this case, session state is required in the http handler that responded to the ajax calls. But read-only access is good enough, so by marking the handler with IReadOnlySessionState instead of IRequiresSessionState, session locks are not held and the problem is fixed.

Hope this information proves useful to others.

Leave a Comment