IE 7, IE 8 etc multiple tab browser session problem

后端 未结 1 1148
后悔当初
后悔当初 2021-01-26 04:26

I have a problem with all multpile tab browsers due to session object. I have a requirement that whenever user opens a new browser I need to show different values, so I thought

相关标签:
1条回答
  • 2021-01-26 05:08

    This is because you are using cookie-based sessions. Your web page instructs the browser to store a tiny file with data locally and this data is sent back to the web server whenever your browser requests a page. This cookie file is shared between all tabs in your browser instance.

    Normally this is what the user expects so you should have a really good reason if you want to change it, but if need to the solution is to use the query string to store the session identifier. This is configured in your web.config file by setting the cookieless attribute of the sessionState element to the value UseUri. See here for the documentation on the sessionState element.

    0 讨论(0)
提交回复
热议问题