Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timeout an application due to inactivity
Message
From
03/05/1999 16:09:23
 
 
To
03/05/1999 15:34:50
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00214697
Message ID:
00214724
Views:
25
Yes, a timer can do the job.
- Create a public property, say oApp.lActivity
- Create a timer that fire every 5 minutes
- In the Timer event, check the status of the oApp.lActivity property:
   - .F.: Log out
   - .T.: Set it to .F.
- In every control, set oApp.lActivity to .T. everytime the user type or click something (in the InteractiveChange(), Click(), etc.)
HTH

> I need to logout an user from application if there is no activity caused
>by the user for say 5 minutes. Can Timer control do the job ?
>Or is there anybody who can point me into the right direction ?
>Thanks in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform