简体   繁体   English

具有相同凭据的多个同时用户访问

[英]Multiple simultaneous user access with same credentials

I have a ASP.NET website where multiple users access the site using same user credentials. 我有一个ASP.NET网站,多个用户使用相同的用户凭据访问该网站。 The site functions fine when used by single user, however when a second user with the same credentials logs in simultaneously and the first user performs any action (clicks any link, selects any dropdown etc.), the first user is redirected to the default/login page. 该站点由单个用户使用时功能正常,但是当第二个具有相同凭据的用户同时登录并且第一个用户执行任何操作(单击任何链接,选择任何下拉列表等)时,第一个用户将重定向到默认目录/登录页面。 I want both the users to access the site without any trouble. 我希望两个用户都可以轻松访问该网站。

Can any one comment on why this is happening and how this can be solved. 任何人都可以评论发生这种情况的原因以及如何解决此问题。

My guess for the reason of the behaviour would be the authentication method you are using. 我对这种行为原因的猜测是您使用的身份验证方法。 Probably when the first user logs in he gets a session ID that authorises him for the following requests. 可能当第一个用户登录时,他会获得一个会话ID,该会话ID授权他可以进行以下请求。

When another user uses the same credentials to log in, different session ID is created for that user so the ID the first user has is not valid any more, and therefore he gets redirected to the login page. 当另一个用户使用相同的凭据登录时,将为该用户创建不同的会话ID,因此第一个用户拥有的ID不再有效,因此将其重定向到登录页面。

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

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