如何检查用户网站登录Asp.net [英] how to check the users website login in Asp.net

查看:58
本文介绍了如何检查用户网站登录Asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查看用户网站登录Asp.net





我完成了一个带登录屏幕的ASP.NET网站。它具有管理员,用户等等的登录级别。



假设一名员工从一台PC登录我的网站并尝试登录来自另一台电脑的员工,我需要显示一条消息,说明同一名员工登录了另一台电脑并需要从首次登录时退出。



必须完成同样的工作相同的PC不同的浏览器和相同的浏览器不同的选项卡登录。(与gmail或facebook登录相同)。



请告诉任何方法做同样的事情



注意:不使用Membership Concept(ASP.NET-3.5,SQL server 2008)。

how to check the users website login in Asp.net


i completed an ASP.NET website with Login screen. It is having levels of login like admin,user...etc.

Suppose if an employee logged in to my website from one pc and tried to login for the same employee from another pc,i need to display a message saying that same employee logged in another pc and need to logout from the first login.

Same has to be done with same pc different browser and same browser different tab login.(same as gmail or facebook login).

Please tell any method to do the same

Note:Without using Membership Concept(ASP.NET-3.5,SQL server 2008).

推荐答案

也许你需要开始这里: https://msdn.microsoft.com/en-us/ library / eeyk640h%28v = vs.100%29.aspx [ ^ ]。 :-)



-SA
Perhaps you need to start here: https://msdn.microsoft.com/en-us/library/eeyk640h%28v=vs.100%29.aspx[^]. :-)

—SA


这是不可能的,因为网络是无国籍的 ;你的网络服务器不知道谁在任何时候登录,它只能处理请求,客户端和服务器之间没有永久连接,所以它无法知道你是否还在那里,仍然登录或其他任何内容。
This isn't possible as the web is "stateless"; your web server doesn't know who is logged in at any one time, it can only process requests when they are made, there is no permanent connection between client and server so it has no way of knowing if you are still there, still "logged in" or anything else.


这篇关于如何检查用户网站登录Asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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