每次用户在新的浏览器窗口中访问应用程序URL时,如何以编程方式在IE中创建新的浏览器会话 [英] How to programmatically create new browser sessions in IE every time a user accessed an application URL in new browser window

查看:83
本文介绍了每次用户在新的浏览器窗口中访问应用程序URL时,如何以编程方式在IE中创建新的浏览器会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当用户在新浏览器窗口中访问应用程序URL时,如何以编程方式在IE中创建新的浏览器会话?这类似于模拟IE8或IE9中的手动操作文件 - >新建会话菜单。

How to programmatically create new browser sessions in IE every time a user accessed an application URL in new browser window? This is similar to simulating the manual action "File->New Session" menu in IE8 or IE9.

我们的用户希望在不同的IE窗口中的多个独立会话中登录我们的应用程序并执行独立操作。由于IE维护通用浏览器缓存以访问身份验证详细信息,因此新浏览器窗口将继续使用现有会话而无需创建新会话。我们不希望在为同一用户创建新会话时使用户的上一个会话无效,以确保两个会话都处于活动状态。

Our users want to login to our application in multiple independent sessions in different IE windows and do independent actions. Since, IE maintains common browser cache to access auth details, new browser window will continue with the existing session without creating a new session. We do not want to invalidate previous session of a user while creating new session for same user to ensure both sessions are active.

推荐答案

我个人不会尝试对抗浏览器的默认会话行为,而是希望应用程序处理单独的并行子会话。因此,如果一个会话中的用户想要打开一个新会话,您可以打开一个新选项卡,并在URL参数中传递子会话ID。然后,您可以通过传递子会信息来传播每个子会话。

I personally would not try to fight the default session behavior of the browser, but would rather have the application handle separate parallel sub-sessions. So, if a user in one session wanted to open a new session, you could perhaps open a new tab, with sub-session id passed in URL parameters. You could then propagate each subsession by passing along the subsession information.

这篇关于每次用户在新的浏览器窗口中访问应用程序URL时,如何以编程方式在IE中创建新的浏览器会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆