Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many users using my app
Message
De
15/05/2017 20:15:07
 
 
À
15/05/2017 19:04:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2016
Network:
Windows Server 2016
Database:
Visual FoxPro
Application:
Web
Virtual environment:
VMWare
Divers
Thread ID:
01651110
Message ID:
01651113
Vues:
85
>What would be the best way to count how many users are using my app at the same time?
>
>I want to control how many persons can use my app.
>
>I'd prefer pure vfp code as much as possible. But in the long run as long it works I'll be happy.

This would probably assume you have some kind of authentication. By doing that, you could log when a login is done and act accordingly. Or, you could have some kind of hit mechanism to log the latest actions from users so you could log that into a table and use a select to get the active users for the last 5 minutes, for example. If you would have some kind of direct connection, such as an open channel, then, this would be probably easier to achieve.

In a desktop application, it would be a little bit more difficult to achieve that task as you would probably not have a single point of entry. In a Web application, as every hit goes through the same path, it makes it easier to achieve such feature.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform