Results 1 to 2 of 2

Thread: User inactive session

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    User inactive session

    Hi,

    I am working on VB 2010 windows application... Now client want to loged user logout if he/she not working in application for a particular time frame... Just like screensaver work in windows os.

    Can anybody suggestion on this.. how to do it...

  2. #2
    Addicted Member
    Join Date
    Apr 2011
    Posts
    223

    Re: User inactive session

    It would depend how you are able to check for keyboard and mouse inputs. But I believe you would want two timers for this. One continuously checking for any keyboard or mouse input. If it detects nothing, it enables the second timer where it would count up. If the first timer detects input at any time, it resets the counter and disables timer2.

    As for the specific code, one of the more experienced coders may know how to check this. There would be a difference between checking system wide and just your program though. The simplest imo would be within your own program, though that has limitations.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width