防止在asp.net中多次登录 [英] Prevent multiple login in asp.net

查看:94
本文介绍了防止在asp.net中多次登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

专家   
非常感谢您的帮助.    我已经开发了
一个可以包含许多用户的Web应用程序.    
我只想防止Web应用程序中的多次登录,例如-
         1.如果
User1
已登录,在另一个浏览器或另一台计算机上,
用户1
可以            
不能登录直到以前的登录被破坏.
         2.如果User1
从浏览器"a"或计算机"a",另一台计算机或
注销
       ;     
浏览器 User1可以登录.         
3.如果关闭了浏览器并注销,则User1可以从同一浏览器或
重新登录            不同
浏览器或机器.         
4.并且最重要
是,假设应用程序,计算机或b
划船者


意外关闭
,进入系统.

你能帮我吗?提前致谢.
Mahesh Patel.

Hi Experts,    
I am very thank full if you help me.     I have developed
one web application which can contain many users.    
I just want to prevent multi ple login in web application in terms of like -
          1.  If
User1
is logged In, form another browser or another machine the
User1
can              
not login untill previous login has been distroyed.
          2. If User1
Logged Out
from Browser "a" or Machine "a", from another machine or
        ;      
browser User1 can login.          
3. If Browser closed with Logout, User1 can login again from same browser or
              different
browser or machine.          
4. And The most important
point
is, Suppose Application, Machine Or b
rowser


             
close unexpectedly
, The into system.

Can u Help me? Thanks in advance.
Mahesh Patel.

推荐答案

看看这些,在这里

防止在ASP.NET中多次登录 [使用ASP.NET中的缓存防止多次登录 [
Have a look at these, here you go

Preventing Multiple Logins in ASP.NET[^]

Prevent Multiple Logins Using the Cache in ASP.NET[^]


这是您的答案

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天全站免登陆