On our ASP.NET project, we have the code
I have implemented something like that in an ASP.NET WebForms application. It creates different sessions for a given user when he runs the application in multiple tabs of a browser. The method I use: I create a SessionID in the login validation function, then it is transfered in a QueryString parameter from one page to the other, and stored in the ViewState of the current form.
Store the locationcode in Application["locationcode"] variable.