wdw Posted December 17, 2002 Posted December 17, 2002 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: Quote
Moderators Robby Posted December 17, 2002 Moderators Posted December 17, 2002 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. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.