[strike]Wait a sec.
HTTP Sessions are unique to the requests that the server receives. Therefore, it should be possible in theory to send two different requests (possibly GET) from two different tabs and maintain two different sessions.
I am not familiar with ASP, therefore I cannot be sure how this is implemented. I will try to demo it using Java Servlets and let you know in sometime.[/strike]
Scratch that, it does not work. I just tested. It has something to do with cookies. Whenever you make a request to the server for the first time, the browser gets the session id and creates a cookie. Now, when you access the same URL again from another tab, it reads the stored cookie and and passes it with the request.
- - - Updated - - -
I disabled cookies on my server and now I am getting different session Ids for different tabs. You should try the same and see if it works for you.
I am not familiar with ASP, therefore I cannot help you with how to do that. There should probably be some attribute in whatever the ASP equivalent of the Context configuration file is.
- - - Updated - - -
Here's what I found:
With cookies:
Tab 1:
Code:
Session id is 0FCBBCC243224434979AD88CF19A8F84
Encoded URL is *localhost:8080/RequestDemo/Index.jsp
Tab 2:
Code:
Session id is 0FCBBCC243224434979AD88CF19A8F84
Encoded URL is *localhost:8080/RequestDemo/Index.jsp
Tab 3:
Code:
Session id is 0FCBBCC243224434979AD88CF19A8F84
Encoded URL is *localhost:8080/RequestDemo/Index.jsp
After disabling cookies:
Tab 1:
Code:
Session id is B382D2824A92A2D1D628BC071366D0C2
Encoded URL is *localhost:8080/RequestDemo/Index.jsp;jsessionid=B382D2824A92A2D1D628BC071366D0C2
Tab 2:
Code:
Session id is 0FCBBCC243224434979AD88CF19A8F84
Encoded URL is *localhost:8080/RequestDemo/Index.jsp;jsessionid=0FCBBCC243224434979AD88CF19A8F84
Tab 3:
Code:
Session id is CCC38E298162EC8C23E5AAF451CC9D38
Encoded URL is *localhost:8080/RequestDemo/Index.jsp;jsessionid=CCC38E298162EC8C23E5AAF451CC9D38