如何创建用户/会话锁 [英] How Do I Create A User/Session Lock

查看:53
本文介绍了如何创建用户/会话锁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我目前有一个允许用户登录系统的应用程序。



问题我有是在目前相同的用户名可以从他们希望的任意数量的计算机登录。



我正在考虑创建一个SQL表,将记录用户他们登录。

我用这种方法看到的问题是,如果他们从工作场所的计算机登录然后回家尝试登录,用户将被锁定,因为他们还没有退出或只是关闭浏览器。



请不要我的申请是基于网络的申请。



请你提出建议什么是创建用户锁的最佳方式。

解决方案

试试这个:阻止ASP.NET中的多个登录 [ ^ ]

Hi
I currently have an application which allows users to login to the system.

Problem i am having is that at current the same username can be logged in from as many computers as they wish.

I was thinking of creating a SQL table that will record the user when they log in.
The problem i for see with this method is what if they login from computer at workplace and then go home and try login and the user will be locked because they have not logged out or just closed the browser.

Please not my application is a web based application.

Please could you advise as to what would be the best way to go about creating a user lock.

解决方案

Try this: Preventing Multiple Logins in ASP.NET[^]


这篇关于如何创建用户/会话锁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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