简体   繁体   中英

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#. Since Winforns don't have sessions, I want to create a class that can check my sessions during the logs of mu users. 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. you need to add reference of Winforms.Components.dll in your application,

you have to read tutorial regarding Tickinterval and TickAsync of this class

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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