简体   繁体   English

使用 c# 的 windows 应用程序的会话类

[英]Session class for windows application using c#

Please help me with my problem.请帮我解决我的问题。 I'm starting to make a user login in winforms using C#.我开始使用 C# 在 winforms 中进行用户登录。 Since Winforns don't have sessions, I want to create a class that can check my sessions during the logs of mu users.由于 Winforns 没有会话,我想创建一个可以在 mu 用户的日志期间检查我的会话的类。 Time they login and out.他们登录和退出的时间。 How many attempts they enter incorrect password.他们输入错误密码的尝试次数。 please help.请帮忙。

在 Windows 应用程序中,您可以简单地使用静态类/对象来维护用户数据。

if you need to logoff user who did not interact with application within specific time,如果您需要注销特定时间内未与应用程序交互的用户,

Winforms.Components.ApplicationIdle can acheive this goal. Winforms.Components.ApplicationIdle 可以实现这一目标。 you need to add reference of Winforms.Components.dll in your application,您需要在应用程序中添加 Winforms.Components.dll 的引用,

you have to read tutorial regarding Tickinterval and TickAsync of this class您必须阅读有关此类的 Tickinterval 和 TickAsync 的教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM