Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timeout an application due to inactivity
Message
De
03/05/1999 16:09:23
 
 
À
03/05/1999 15:34:50
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00214697
Message ID:
00214724
Vues:
24
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform