简体   繁体   English

如何在浏览器的不同选项卡中以不同的用户身份登录?

[英]How to login as different user in different tabs in a browser?

I am using .net 2.0. 我正在使用.net 2.0。 I want to open a application in different tabs in a browser. 我想在浏览器的不同选项卡中打开一个应用程序。 I want to login as different users in different tabs in a browser. 我想在浏览器的不同标签中以不同的用户身份登录。 [The Application menus will be loaded based on particular user session.] Is it possible?? [应用程序菜单将根据特定用户会话加载。]是否可能?

ASP.NET cookieless sessions and cookieless forms authentication should do the trick. ASP.NET无cookie会话和无cookie表单身份验证应该可以解决问题。

I've never done it before, and it doesn't look like a lot of people have, but basically, it stores whatever would normally be in a cookie in the URL instead. 我以前从来没有这样做过,它看起来不像很多人,但基本上,它存储了URL中通常存在于cookie中的任何内容。 Because of this, there would be nothing shared between browser tabs/windows. 因此,浏览器选项卡/窗口之间不会共享任何内容。

I don't know how much work is involved in making that happen - I know in theory it's just a config setting, but I don't know if it's really as easy as that. 我不知道实现这一目标需要做多少工作 - 我从理论上讲它只是一个配置设置,但我不知道它是否真的那么容易。

In IE you can go to File -> New Session which would allow you to have two windows. 在IE中,您可以转到文件 - >新会话,这将允许您有两个窗口。 You can log into the same application as different users this way (and I regularly do). 您可以通过这种方式以不同的用户身份登录相同的应用程序(我经常这样做)。 I'm sure the other browsers have something similar. 我确定其他浏览器有类似的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM