Posts: 67
Threads: 23
Joined: Jun 2018
Reputation:
0
Location: Brazil
Hi, I need to do a license control in IW app.
Is there a way to know how many distinct PC users are using the IW app.
If the amount is greater than a limit, I´d like to disable access.
Any others ideas are appreciated.
Regards,
Luiz
Posts: 67
Threads: 23
Joined: Jun 2018
Reputation:
0
Location: Brazil
Hi, Shane,
I guess sections is not a good idea because a User can have many sessions.
Maybe I am wrong, but when I check the sessions in IW GUI I can see many sessions to only a user.
I don´t know how to count distinct sessions from different users.
Posts: 204
Threads: 51
Joined: Mar 2018
Reputation:
3
Location: Bryan, TX
Howdy cprmalo!
It is up to you to decide what the key field(s) are and whether or not you count multiple sessions as unique or only count as one user.
That is why I suggest using the the UserList and whatever key field(s) the developer requires.
All the best,
Shane
Posts: 227
Threads: 4
Joined: Mar 2018
Reputation:
22
As Shane indicated, you can pretty easily limit the number of sessions. I put in that ability, just count the sessions (see the Session List demo) and terminate a new session if the count is over a limit.
You can also limit to explicit users by creating an "authorizing cookie". It's a fairly lightweight process because it's not foolproof. In your app, create a form that allows someone to "stamp" a machine as authorized by placing an encrypted cookie. If the cookie doesn't exist on normal session start then terminate the session. However, if the user has more than one browser then each browser has its own cookie store, so authorizing in Firefox wouldn't let them use the app with Chrome.
But, you actually asked about limiting to distinct PC's. That's more difficult since browsers like to deny access to identifying info. Someone here may have a solution to that, but I don't. I suppose one option would be to look for unique IP's but that would only work locally (not behind a router). I'm curious as well. If you do come up with something, let us know here.
Dan