Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

  • Moderators
Posted

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.

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...