Is there a way to limit sessions per user?
Author: michael.hoogenboom@telecom.co.nz (hoogmike)
Hi, we have a Uniface 8 application consisting of an Oracle 9 database and uniface forms hosted on a Sun Solaris 9 server, and Uniface 8 clients installed on Win XP desktops.
I am wondering if there is a way we can limit the number of client sessions a user can have open on their desktop at the same time? e.g. limit users to two concurrent sessions. We have found that some users have up to 8 sessions open concurrently, causing the application to slow.
Thanks!
Problem solved...
For Uniface runtime the setting needs to be:
name of the Uniface application startup shell=window title
Author: Arjen van Vliet (arjen.van.vliet@uniface.com)
Is there a way to limit sessions per user?
Author: michael.hoogenboom@telecom.co.nz (hoogmike)
Hi, we have a Uniface 8 application consisting of an Oracle 9 database and uniface forms hosted on a Sun Solaris 9 server, and Uniface 8 clients installed on Win XP desktops.
I am wondering if there is a way we can limit the number of client sessions a user can have open on their desktop at the same time? e.g. limit users to two concurrent sessions. We have found that some users have up to 8 sessions open concurrently, causing the application to slow.
Thanks!
Hi,
if all your customers have different userids during database logon,
I think you could do something from the oracle database management,
Because it is managed by the database, no maintenance is necessary for aborted processes.
The rest is the same as the solution with the database table.
A very easy option is a small c++ routine (packed in a dll)
which scans all application windows on windows and count the unifaces/idfs running.
If you are interested in that soultion, send me a mail.
Success, Uli
Author: ulrich-merkel (ulrichmerkel@web.de)
Is there a way to limit sessions per user?
Author: michael.hoogenboom@telecom.co.nz (hoogmike)
Hi, we have a Uniface 8 application consisting of an Oracle 9 database and uniface forms hosted on a Sun Solaris 9 server, and Uniface 8 clients installed on Win XP desktops.
I am wondering if there is a way we can limit the number of client sessions a user can have open on their desktop at the same time? e.g. limit users to two concurrent sessions. We have found that some users have up to 8 sessions open concurrently, causing the application to slow.
Thanks!
Jan 1, 2010
 "wishes" fulfilled: Is there a way to limit sessions per user?

by ulrich-merkel
|
|
     
|
|
|
|
|
|
Introduction
|
|
|
|
|

|
start the new year with another support from the dITo initiative
|
|
|
|
|
|
|
|
Is there a way to limit sessions per user?
A very easy-to-use solution can be found on the
giveaways page from www.uli-merkel.de/dito
All clients of a given DLL are counted; use different DLLs for different groups of applications.
Success, Uli
|
Author: ulrich-merkel (ulrichmerkel@web.de)
Is there a way to limit sessions per user?
Author: michael.hoogenboom@telecom.co.nz (hoogmike)
Hi, we have a Uniface 8 application consisting of an Oracle 9 database and uniface forms hosted on a Sun Solaris 9 server, and Uniface 8 clients installed on Win XP desktops.
I am wondering if there is a way we can limit the number of client sessions a user can have open on their desktop at the same time? e.g. limit users to two concurrent sessions. We have found that some users have up to 8 sessions open concurrently, causing the application to slow.
Thanks!
Hello Mike,
Two things you can try :
1. use the single_instance setting in your usys.ini file
[SINGLE_INSTANCE]
IDF=Uniface Seven
When a new instance of a Uniface application is started, Uniface first checks whether that application is listed under the [SINGLE_INSTANCE] section. If so, it looks for a window that starts or ends with the specified title. The title string is not case sensitive. If such a window is found, the focus changes to the existing application, and a second instance is not started. (see Uniface Library)
2. use the $timeout setting in your .asn file
for example : $timeout = 40
In this case, if an application is 'idle' during 40 minutes, you can exit the application (via coding in Asynchronous Interrupt trigger).
Regards,
Ben.
Author: BenHen (benoit.henry@hotmail.com)
Is there a way to limit sessions per user?
Author: michael.hoogenboom@telecom.co.nz (hoogmike)
Hi, we have a Uniface 8 application consisting of an Oracle 9 database and uniface forms hosted on a Sun Solaris 9 server, and Uniface 8 clients installed on Win XP desktops.
I am wondering if there is a way we can limit the number of client sessions a user can have open on their desktop at the same time? e.g. limit users to two concurrent sessions. We have found that some users have up to 8 sessions open concurrently, causing the application to slow.
Thanks!
This is something I saw quite often:
Make a table in your menu/autorisation system.
When a user starts a uniface application (logon fom or something) log that in the table.
When the record already exists, increase the counter by one.
When the counter gets over a maximum that you have set, deny the user access.
When the user exits the application, decrease the counter.
Drawback:
if the application crashes the counter is not decreased, so give your helldesk a form to reset the counter.
if your system shuts down at night (for backup, batches) reset all counters.
This is a really old solution, but it works.
NB: this is for client/server, not for Web.
Theo Neeskens
Solution Architect
Uniface Services
Compuware
Author: Theo Neeskens (tneeskens@itblockz.nl)
Is there a way to limit sessions per user?
Author: michael.hoogenboom@telecom.co.nz (hoogmike)
Hi, we have a Uniface 8 application consisting of an Oracle 9 database and uniface forms hosted on a Sun Solaris 9 server, and Uniface 8 clients installed on Win XP desktops.
I am wondering if there is a way we can limit the number of client sessions a user can have open on their desktop at the same time? e.g. limit users to two concurrent sessions. We have found that some users have up to 8 sessions open concurrently, causing the application to slow.
Thanks!
Hi Benoit,
I got the usys setting [SINGLE_INSTANCE] working for IDF, just as in your example.
It does not seem to work for uniface.exe, when I do something like UNIFACE=My Uniface Application.
My current Uniface version is 9.3
Any tips or tricks?
Thanks,
Arjen
Author: Arjen van Vliet (arjen.van.vliet@uniface.com)