Security in a windows form

wdw

Freshman
Joined
Dec 11, 2002
Messages
37
Hello,

I have build a login for my windows application, but now I want to have a sort of a time out on my authorization. For example: when there is a period of inactivity for 5 minutes. I want the user to login again after those 5 minutes.

I hope someone have a solution for my problem

Greetz Willem:confused: :confused:
 
There a couple of ways to do this, here's one....
You can place a Timer on the form and set its' Interval to 300000 (5 minutes), each time there is activity by the user, reset the Interval to 300000.

If the Timer_Tick event ever occurs that means it hasn't been reset for 5 minutes.

When to reset the Timer? Your choice, you can use the mouse move of the form and/or any of the controls.
 
Back
Top