Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for logged on users
Message
 
To
05/03/1998 05:14:59
Rene Van Den Berg
Infertility Database Systems Ltd
Islington, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00082641
Message ID:
00082642
Views:
28
>Hi everyone,
>
>I want to restrict the number of users who can work on my multiuser VFP 5.0 executable simultaneously to a set number, for licensing purposes.
>
>One of the ways I've done that in the past is to use a password table and lock the record for the logged on user in that password table. My worry with this is that when a workstation crashes, the lock may not be released, leaving the user locked out.
>
>Does anyone have any ideas on the best way to achieve what I want to do? Thanks very much. Rene.

Rene,
I did something similar to this some years ago using C whereas my application contained some 'dummy' data which was then stored in the .exe file. My application then used this area in the exe to keep a log of users. Each time a user ran the app, every few seconds the app would place the time into this area in the exe - when another user comes along, the slots are checked for open spaces and, if none found, would check to see if any have an out-of-date time slot and use one up if it finds it. I think that this idea could be modified to work with VFP in some way.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform