多个用户从同一系统登录 [英] Multiple users logging in from the same system

查看:112
本文介绍了多个用户从同一系统登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在asp.net应用程序中使用Windows/Forms身份验证.如果用户已经从一个系统登录,那么如果有人尝试访问login.aspx,则从同一系统登录(在第一个用户会话到期之前) ),然后将页面重定向到第一个用户主页.是否有任何简单的方法/配置来实现此目的?

解决方案

ASP.NET使用非持久性cookie来跟踪会话信息.如果我们将会话管理配置为不使用cookie,则状态信息实际上会放在URL中.

上述事实意味着来自同一台计算机的不同浏览器的用户请求将无法使用现有的会话信息,即用户登录的详细信息,因此,如果您需要执行此操作,则可能必须使用自定义的持久cookie. /blockquote>

I am using windows/Forms authentication in an asp.net application.If an user has already logged in from one system then from the same system if anyone is trying to access the login.aspx(before the first users session is expired) then the page should be redirected to the first users main page.Is there any simple way/ configuration to achieve this?

解决方案

ASP.NET uses non persistent cookies to track the session information. If we configure the session management to become cookie-less then the state information is actually put in the URL.

The above fact would mean that the users requests coming from different browsers of same computer will not be able to use the existing session info i.e. user logged in details so if you need to do this then perhaps you will have to use custom persistent cookies.


这篇关于多个用户从同一系统登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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