Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Distinct PC Users using IW App
#1
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
Reply
#2
(11-01-2019, 11:32 AM)cprmlao@hotmail.com Wrote: 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
Howdy Luiz!

While I haven't done it, have you considered looking at one of the Session List examples from Alexandre, and then figuring out how many are unique sessions via some method in your own UserSession object?

You can check this in one of the new session / browser check events of the Server Controller and if the limit is hit, return a limit exception of your own defining.

All the best,

Shane
Reply
#3
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.
Reply
#4
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
Reply
#5
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)