The fact that it should be irrelevant is provided that the request is generated from the request from the exsiting session; I suppose it should be - but he can pay to check exactly how the request is formed. Always pay to get back to basics :)
Assuming this is normal, here is how I did it:
string sessionId = string.Empty; System.Web.SessionState.SessionIDManager sessionIDManager = new System.Web.SessionState.SessionIDManager(); bool supportSessionIDReissue; sessionIDManager.InitializeRequest(httpContext, false, out supportSessionIDReissue); sessionId = sessionIDManager.GetSessionID(httpContext); if (sessionId == null) {
At the end of this parameter, the sessionId variable will contain (should) be an existing session identifier or a newly created one that can be reused later.
source share