Preventing 2 smart client sessions on same computer

Is there an easy way to prevent a user from launching a 2nd smart client session on a computer which is already running one?

We’ve found that users often launch a new session without realizing they already have one running.

Thanks

Chico

And no, getting rid of the user will not solve our problem. :D

chico:
And no, getting rid of the user will not solve our problem. :D

Aww…I just wanted to say “replace user and hit any key to continue…” ;)

Anyway, you can add some unique user info on the server and check it when a solution opens/logs in using the following functions.
application.addClientInfo(string)
application.getClientCountForInfo(string)

So you can set some unique user/machine specific info on the server and using the count to see if it already exists and act accordingly.
Of course all this only works when the client has a solution open.

Hope this helps.