| |
| Publicado el 06,abril 2015 - 20:33 |
Hi
I would like to be able to check the number of concurrent users that are using my software. Could somebody suggest a best way to approach this?
I have thought about a central file where login will add a user end close will remove a user. But what happens when there is a computer or software crash?
any suggestions welcome.
Thanks and Regards Noel |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,abril 2015 - 20:44 |
Hi Noël
you do what you just described, and you add a CURRENT datetime field to the record. In your application, you set a timer for 5 mn (by example) to refresh this record.
Any record with datetime older than 5 minutes is a dead record...
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 07,abril 2015 - 03:13 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 07,abril 2015 - 13:58 |
Hi Fabrice,
Is there a (simple) solution to 'synchronize' the time between the different computers? Or can we use the time on the HFCS server?
Regards,
Joris |
| |
| |
| | | |
|
| | |
| |
| Publicado el 07,abril 2015 - 14:12 |
Hi Joris
sure, with hinfoserver (with the date/time constant). That will give you the server date time
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 07,abril 2015 - 14:26 |
Hi Bob
that won't work, as this would mean that each user/application connecting to the HF DB would need to use a different login/password at the DB level, which is extremely rarely the case, as it means duplicating identification at the windows and HF levels
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
NEW: WXReplication, your open source replication system is available on my web site!!! WXShowroom.com: Show your projects! More information on http://www.fabriceharari.com
On 4/6/2015 7:13 PM, Bob R wrote:
|
| |
| |
| | | |
|
| | |
| |
| Publicado el 07,abril 2015 - 15:30 |
Hi,
I use the following trick.
Assume you have 10 users.
There is a table with 10 records. Every user when he logs, he scans al 10 records and the first free record he found then he locked. So this record is locked for all other users except for him. So when you like to check how many users are there you count al locked records add 1 and this count is the quantity of users current logged.
When the computer crashed etc the records are automatic unlocked !!
Regds Henri Parianos |
| |
| |
| | | |
|
| | |
| |
| Publicado el 07,abril 2015 - 15:40 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 07,abril 2015 - 23:40 |
Hi Fabrice,
What about if you just use the HF and no server ?
Regds Parianos Henri |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,abril 2015 - 06:47 |
Hi Henri,
That is what we do - it is a good solution.
I enhance it by looking for a record with the users computer login name. If it does not exist I create it and lock it. Otherwise if found just lock it. Then count locked records. This allows me to create a log file of who loaded the system and when. Just an additional bit of info and no need to pre-create the number of records. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,abril 2015 - 17:14 |
Hi Fabrice,
That means that a user can start multiple sessions with no harm. What about within a Citrix with different users and the same credentials ?
Just a thought
Regds
Henri |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,abril 2015 - 17:29 |
Hi Henri
if you are using HF classic in a multi user environment on modern computer, you have a MUCH BIGGER problem then authorizing a certain number of users... You will get data corruption from oplock problems at any time (often after a windows update)... So, considering the very simple installation process of HFCS, I would STRONGLY advise shifting to it.
As for the same user starting multiple sessions, there are multiple answers: - that may be desired behavior - it depends what you call the USER in that context (it could be the local computer network name or IP) - as for citrix, once again, it depends on what you are using as a user identifier
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,abril 2015 - 23:24 |
Hi Fabrice,
My principle is for more than 3 users I use HFCS, but after reading the oplock problems you mention I wil reconsider the user count idea.
Thanks for tip.
Regds
Parianos Henri :cheers: |
| |
| |
| | | |
|
| | |