如何在不同的浏览器中停止具有相同ID的用户的多重登录 [英] How to stop multi login of user with same id in different browser

查看:102
本文介绍了如何在不同的浏览器中停止具有相同ID的用户的多重登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不同的浏览器中停止具有相同ID 的用户的多次登录





我尝试了什么:



i尝试在数据库中使用标志来维持这个但是如果用户不单击注销按钮,然后数据库标志将处于活动状态

解决方案

您发现在Web应用程序中使用单实例登录时出现问题。你基本上不能这样做,并且可以管理。



如果用户登录然后,无论出于何种原因(网络故障,工作站故障,用户只需关闭)浏览器没有想到,...),无法注销,他们将如何恢复会话或以其他方式再次登录?



您可以使用会话超时,但你可能让用户在那里坐20分钟等待他们的旧会话超时以便能够再次登录。



Web应用程序称为已断开连接因为与客户没有持续的联系。这是一个请求/响应系统。客户端连接,请求页面,获取返回给他们的页面,然后断开连接。对每个页面请求重复。



它可以完成,但管理起来可能是一个巨大的痛苦因为你的帮助台或支持人员会进入系统清除已登录的用户,以便他们可以重新登录。


你不应该做的事情不花时间做| ASP.NET论坛 [ ^ ]

how to stop multi login of user with same id in different browser



What I have tried:

i try to use flag in database to maintain this but if user not click on logout button then database flag will be active

解决方案

You've discovered the problem with using a single instance sign-on in a web application. You basically can't do this and have it be managable.

If the user logs in and then, for whatever reason (network failure, workstation failure, user simply closed the browser without thinking, ...), cannot log out, how are they going to then resume their session or otherwise log in again?

You could use the Session timeout, but you might have users sitting there for 20 minutes waiting for their old Session to timeout to be able to log in again.

Web applications are called "disconnected" because there is no constant connection with the client. It's a request/response system. The client connects, requests a page, gets the page returned to them and the connection is then torn down. Repeat for every page request.

It can be done, but it can be a huge pain to manage because your Help Desk, or support person, will be going into the system to clear out logged in users so they can back in again.


Things you shouldn't spend time doing | The ASP.NET Forums[^]


这篇关于如何在不同的浏览器中停止具有相同ID的用户的多重登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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