防止同一计算机上的ASP.Net多次登录 [英] Preventing ASP.Net Multiple Login in same Computer

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

问题描述

如何防止新的Window/Tab中的不同用户标识登录同一台计算机上的同一Web应用程序(ASP.net4.0,SQL SERVER)?

谢谢与问候
Deepak Kumar

How to i prevent logging in same web application (ASP.net4.0,SQL SERVER)in same computer from different userid in new Window/Tab?

Thanks and Regards
Deepak Kumar

推荐答案

用户登录到您的网站后,将系统IP地址存储到数据库或会话中,并在用户注销或会话超时后清除它.

当其他用户尝试登录时,请检查是否有其他用户从同一IP地址登录.如果是,则不允许用户登录..


http://stackoverflow.com/questions/735350/how-to-get-a-users-client-client-ip-address-in-asp-net [
When a user logs into your website, then store the systems IP address into the database or session and clear it when the user logs out or after session timeout.

When the other user tries to log in then check if any other user is logged in from the same IP address. If yes, then do not allow the user to log in..


http://stackoverflow.com/questions/735350/how-to-get-a-users-client-ip-address-in-asp-net[^]


这篇关于防止同一计算机上的ASP.Net多次登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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