Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many connections
Message
From
01/10/2002 14:30:53
 
 
To
01/10/2002 14:05:56
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00706500
Message ID:
00706515
Views:
13
>In my app I have a login procedure and everytime someone login I update my login table and this tell me how many users are login and I also have a logout procedure that update the login table, this will work well in a perfect world, where I see a problem is if the users computer shutdown prematurely, if this happen it would not update my login table, so the login count would be off.
>
>I need some ideals on how many users are login to the application.
>

The Win32 API mechanism would be to have each session create a named mailslot; named mailslots are resolvable within an NT or Win2K domain environment. At termination, have the program destroy its mailslot; if a system is rebooted or a session is terminated abruptly, Windows will act to destroy the unowned mailslot within a very brief period of time.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform