question about automatic logout with winform

  • Thread starter Thread starter YongSeung Kim
  • Start date Start date
Y

YongSeung Kim

Hi,

I would like to achieve automatic logout after a certain period time with no
activity.
I made an public variable (e.g IsAcccessGranted ) and set it from a
database.
I want to make a logged-in user log-out when He does not do any action with
the application.
Is there anyway good way to do it with WinForm?

Yong
 
Thanks

How do you detect "no activitiy"?
Would you give me bit more clue on it?

Yong
 
Hello YongSeung Kim,

You can set a timer in your application and handle the Application.Idle event to restart the timer. When this timer fires, your application will have been inactive for it's interval.

Regards.

"YongSeung Kim" <[email protected]> escribió en el mensaje | Hi,
|
| I would like to achieve automatic logout after a certain period time with no
| activity.
| I made an public variable (e.g IsAcccessGranted ) and set it from a
| database.
| I want to make a logged-in user log-out when He does not do any action with
| the application.
| Is there anyway good way to do it with WinForm?
|
| Yong
|
|
 
Back
Top