Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to control total of users?
Message
De
13/11/2022 05:15:28
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
12/11/2022 19:53:15
Pete Huish
TallShips Solutions
Ryde, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01685303
Message ID:
01685312
Vues:
44
>The only issue we have with this method is that we are reliant on the user logging out and not all users seem to be able to remember to do that and strand their login record which requires a clean up method.

One way around this is the activity timer, which checks the last recorded activity timestamp (in the login record) against the one in the app itself (which is refreshed from any set of events - any .gotFocus(), .click(), .activate() and select other methods). If the current app timer is a certain time beyond the time in the record, the app concludes that the user is gone, saves any changes, logs him out automatically and shuts down. If not, it updates the time in the login table, i.e. refreshes the record of the user's presence.

Now the intervals involved may be a matter of trial and error... the app timer may fire perhaps every minute or ten, and the allowable inactivity interval may be between 20 and 120 minutes. The latter may be a setting that may change from client to client.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform