检查用户是否已经登录或未使用Winform C# [英] Check wheather a user is already logged on or not in winform C#

查看:417
本文介绍了检查用户是否已经登录或未使用Winform C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



谁能告诉我,如何检查用户是否已经在Winform中登录.
每当有任何客户端运行时,系统都会检查是否已在DbLogin中创建了当前Windows用户帐户并授予了对此应用程序的访问权限.

请尽快帮助我...

Hi,

can anyone tell me ,How to Check a user is already logged on or not in winform.
Whenever any client runs, the system checks whether the current Windows user account has already been created in DbLogin and granted access rights to this application.

Pls help me out asap...

推荐答案

使用成员资格可提供多种方法,您可以从中选择所需的信息...
我希望这可能有用....
Use membership this provides various methods from which u can pick what u need...
i hope this might be useful....


使用Windows/窗体身份验证,您可以判断用户是否通过
登录
Using windows / forms authentication you can tell if the user is logged in via

<%
   Page.User.Identity.IsAuthenticated
%>




表单身份验证基于cookie,但可以配置为不使用无cookie设置的cookie




Forms Authentication is cookie based, but can be configured to not use cookies with the cookieless setting


这篇关于检查用户是否已经登录或未使用Winform C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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