Auto Ad Code

Monday, January 31, 2011

Separate Session for multiple Tabs

With growing usage of Tabbed browsing this can be requirement in some cases that separate sessions should be used for multiple Tabs.
ASP .Net 2.0 (and MAY BE later versions) provide a smart solution for this purpose. The solution is to add following line in your web.config file

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

above line should be added in system.web section of web.config. This will add the session value in URL

1 comment:

  1. I'm sorry, but this solution doesn't address the issue. After implementing this, all tabs and windows will have the same SessionID in the URI, so they still won't have seperate sessions.

    ReplyDelete