开发者

How to manage one Session Per Tab?

Hi I will like to imitate the behaviour of the site ClickBank.com, for example:

Open the site, and login, if i open a tab with the same site, i开发者_Go百科t ask me again to login.

It makes me wonder how to manage one session per tab.

Just to clarify, i don't loose control on the first tab if i log on in the new tab. They are separate sessions.

Thank you


Create a hidden field with a page ID and include that when you are trying to access whatever object in session Assign a random guid or value to that hidden control and then use it to store stuff in session

ex.

Session(PageID.Value & "CheckBoxes") = D

Hope that help!

asp.net - session - multiple browser tabs - different sessions?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜