Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timing out
Message
From
27/05/1998 14:43:00
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00100666
Message ID:
00102468
Views:
44
>>Application for hospital laboratory that requires password for entry.
>>If there is no "activity" for 3 min (for example) is there a way to program "cut out" to a level or screen that would again require a password for reentry?
>
>Hi.
>
>I have done this for a client. I do not have the code handy but basically here's what I did.
>
>I wrote a timer class and attached it to my application object (an object which is global and always instantiated). In the timer object, I check the state of the application. Basically, I check for the currently open form (if there is one), the last key pressed, etc. I do not remember the exact list of things I checked for but I checked for enough that we were reasonably certain that we would get a proper check as to whether the user had changed anything. Oh... We also checked MROW and MCOL.
>
>Anyway, I had this set to check the state of the application at specific time intervals (call it 30 seconds or so). The checking code was real small so it ran real fast. Users never even noticed it. If the state of the app had not changed, I checked to see when the last change was. If the time between changes was long enough for a timeout, I cleared out the application.
>
>You should be able to clear out all active forms (I did) and get to a state where you can mark the user as logged off and force a new login.
>
>If you need some specific code, please send me an e-mail so when I get back to my office (I am in Orlando enjoying one post dev-con day) I can e-mail it to you or post it here (I am not sure about the propriety of posting code on the universal thread... I am very new here).
>
>Hope this helps.


Could you email me the code? trishm@sccsi.com.

I want the system to shut down. I have too many people here that leave with their system running and then I can't put out a new EXE. I am also going to use WINBATCH to copy it to their local drive after a time and date stamp check.

Thanks.

Trish
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform