防止ASP.NET用户同时进行多次登录 [英] Prevent ASP.NET users from multiple logins at the same time

查看:78
本文介绍了防止ASP.NET用户同时进行多次登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些听起来很简单,但我似乎找不到答案..

是否有人知道如何防止ASP.NET应用程序的所有用户使用相同的凭据同时从不同的页面或不同的计算机登录?

These sounds easy but i can''t seem to find an answer ..

Does any body knows how you could prevent all users of an ASP.NET application from using the same credentials to log in at the same time from different pages or from different machines ?

推荐答案

防止多次登录. [
Preventing Multiple Logins.[^] will give you an idea.


这是您的答案
here is your answer
http://engthunder.wordpress.com/2011/10/19/preventing-multiple-user-from-logging-in-using-the-same-username-single-user-login-at-a-time/[^]


使用数据库. u_name传递和状态值...

如果user1已进入页面,则在线更新状态.现在使用查询检查表中的条件是否有任何用户状态在线,然后终止用户.
use data base.there u make table with u_name pass and status value...

if user1 has entered into page then update the status online..now check the condition in the table using queries if any user status is online then terminate the user..


这篇关于防止ASP.NET用户同时进行多次登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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