在浏览器窗口的多个选项卡中维护sesson状态

问题描述:





我有一个应用程序,它有一个登录页面来验证用户。

一旦用户成功登录,会话到期后,我正在维护会话及其超时。



现在,当用户登录后,打开一个新选项卡并输入网址(http: //10.192.168.20:8080/Login.aspx),它将进入登录页面。



我想重定向到主页。



在web.config文件中我添加了



Hi,

I have an application which has a login page to authenticate users.
Once a user successfully logged-in, I am maintaining the session and its doing timeout once session expires.

Now, when the user has logged-in, opens a new tab and enter the url (http://10.192.168.20:8080/Login.aspx), it is going to the login page.

I want to redirected to the home page.

In web.config file I have added

 <system.web>
<sessionState mode="InProc" cookieless="UseCookies"></sessionState>
</system.web>



但是它仍然会登录页面。

请帮我实现这个目标。

提前致谢


But still it's going to login page.
Please help me to achieve this.
Thanks in advance

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


希望以下链接会有所帮助: -



http://geekswithblogs.net/ranganh/archive/2009/04/17/asp.net-session-state-shared-between-ie-tabs-and-ie8.aspx [ ^ ]
Hope below link will be of help :-

http://geekswithblogs.net/ranganh/archive/2009/04/17/asp.net-session-state-shared-between-ie-tabs-and-ie8.aspx[^]