Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
检查特定用户是否已登录-ASP.NET_Asp.net_Asp.net Membership - Fatal编程技术网

检查特定用户是否已登录-ASP.NET

检查特定用户是否已登录-ASP.NET,asp.net,asp.net-membership,Asp.net,Asp.net Membership,我需要知道是否有任何方法可以检查某个特定用户当前是否已登录,如在管理员控制面板或其他地方 我知道有 HttpContext.Current.User.Identity.IsAuthenticated 但这并不能满足我的需要,只是检查一下wither当前用户不是匿名的我实际上找到了一个解决方案 MembershipUser user = Membership.GetUser("username"); bool isLogged = user.IsOnline

我需要知道是否有任何方法可以检查某个特定用户当前是否已登录,如在管理员控制面板或其他地方 我知道有

HttpContext.Current.User.Identity.IsAuthenticated

但这并不能满足我的需要,只是检查一下wither当前用户不是匿名的

我实际上找到了一个解决方案

MembershipUser user = Membership.GetUser("username");
bool isLogged = user.IsOnline