I hope this is the correct forum for these questions.
1. Do HTTPRequest and xmlHTTPRequests from a users browser page share the same session?
2. If so, can race conditions occur whereby an xmlHTTPRequest can start processing before an HTTPResponse
has returned? i.e. Could one browser tab send an xmlHTTPRequest shopping cart change of item while another tab is processing a HTTPRequest calculating total cost such that we have no way of knowing which items are actually in the calculation.
I hope I am making sense.
Another way of asking:
If I have an object stored in a session with a global variable (pointer) to a request, could a second request to the session overwrite that variable before the first request had finished processing so that the process started requesting parameters that it thought were from the first request but, in fact, were from the second request?
I hope this makes sense. We have database accesses and calculations that can take time (the above was only an example not real world) and with AJAX and tabbed browsers I can see xmlHTTPRequests and HTTPRequests in a single session arriving faster than they are handled.
I do not think I need help in managing that situation. I just need to know if I need to bother.