Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many ppl login ?!
Message
 
À
24/01/2001 12:21:15
Agnes Cheng
DynamicTech Consultants Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00467990
Message ID:
00467999
Vues:
9
>I develop my application.
>The (Database )application is stored In NT.
>the program is running on the win 9X.
>
>I want to write a log to check . How many current user to login my system?!
>The same user can run the application twice on his own PC.
>
>1.) I can save the datetime/login user as the user login my application.
>2.) I also can save the leave time as the user press 'Exit' to logout the system.
>
>Now my problem is, somtimes the Win9X is 'hang' , so the user need to 'end task' the application. or the user may suddenly shutdown/re-boot the computer..while the application is running ..
>
>How can check this event ? Or .. How can check that if the connection is broken ??
>
>Thanks
>From Agnes

The normal way I have seen this done is to have a login table and lock the record of the user logging in when starting the application. If the application is abnormally exited, the lock is released. As for figuring out how many people are logged in, you can check the table and see how many records are locked.

HTH
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform