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
 
YongSeung Kim said:
I would like to achieve automatic logout after a certain period time
with no activity.

Use a timer component.
 
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
|
|
 
YongSeung Kim said:
How do you detect "no activitiy"?
Would you give me bit more clue on it?

See the Application.Idle event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top