views:

433

answers:

1

How can i allow multiple tab browser sessions? I've done research and found this line of code:

<sessionState mode="InProc" cookieless="UseUri" />

I was not allowed to use this because the url was displaying the session id on every tab. Are there any other way else i can allow unique session id in multiple tabs? Does any other state managements available is able to work in multiple tabs?

+1  A: 

You can't. Whatever session method you're using, it will still be possible to get the same session into multiple tabs, and impossible to detect on the serverside that a page has been opened in a new tab.

Regardless of whether you're allowed to use it or not, the UseUri session management method won't help. If a user tries to open a link in a new tab rather than in the current window, you [a] have no way of detecting this on the server-side, and [b] you have no way on the server-side to create a new session, transfer the page execution to this new session, all whilst keeping the current session intact.

Chris