Got something here:
In this article in stackoverflow it is stated:
https://stackoverflow.com/questions...serve-multiple-requests-from-a-single-process
This is primarily due to ASP.net's session state variable and the fact that only one request at a time may have R/W access to a particular session (as determined by the SessionID cookie).
Any additional requests requiring any form of session access (since Read/Write is the default) will be blocked until the previous request has been completed.
Based on the following links:
http://johnculviner.com/asp-net-concurrent-ajax-requests-and-session-state-blocking/
https://msdn.microsoft.com/en-us/library/ms178581.aspx?f=255&MSPPError=-2147217396
I suppose this is not my case since the requests are done from 2 different phones...
And in this article in MSDN it is stated:
https://msdn.microsoft.com/en-us/library/ms178581.aspx
Concurrent Requests and Session State
Access to ASP.NET session state is exclusive per session, which means that if two different users make concurrent requests, access to each separate session is granted concurrently. However, if two concurrent requests are made for the same session (by using the same SessionID value), the first request gets exclusive access to the session information. The second request executes only after the first request is finished. (The second session can also get access if the exclusive lock on the information is freed because the first request exceeds the lock time-out.) If the EnableSessionState value in the @ Page directive is set to ReadOnly, a request for the read-only session information does not result in an exclusive lock on the session data. However, read-only requests for session data might still have to wait for a lock set by a read-write request for session data to clear.
And a proposed solution that did not work for me so far (in Global.asax):
Sollution:
Protected Sub Application_BeginRequest(sender As Object, e As System.EventArgs)
If Context.Request.Path.EndsWith("xxx.ccc") Then
Context.SetSessionStateBehavior(SessionStateBehavior.ReadOnly)
End If
End Sub
So I wonder why does it have the same session for two different phones (does it recognize the environment? --> same app/package with same okhttp library and same IP?).
Edit -
Tested my code in an on-line server and it works with two concurrent requests from my IP. It definetely has to do with server settings...