Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tech Mahindra
Tech Mahindra
CA
Tech Mahindra
Posted: Jun 13, 2016
Last activity: Jun 15, 2016
Last activity: 15 Jun 2016 5:31 EDT
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
What is the best way to impement to accept only one user at a time into system in multi node application?
One way I can think of would be to have an existing instance of a work object whose purpose is to enforce one-at-a-time. As application starts, it would open and lock this instance, and only allow the user to proceed if the lock is obtained.
Note that if your scoping needs are to allow one login per user to use the application, you could have an instance of the one-at-a-time class per user.
./Eric
Thanks Eric.
1. How soft lock scenario should be handled in this approach?
For eg, user A logged onto application using a lock on instance X-Y-Z.A and so that when another try to logon with same user A ID, it will not be allowed as lock on instance A is already held. But after lock expire period say 120 mins, even though the user A is active, lock on X-Y-Z.A instance will be lost and become soft lock and then further any login attempt with user A will be successful. Now application can have 2 requestor session with same user ID.
2. If the user A who logged in, closed the browser window after logon. How can the lock acquired by user A is released. Does the user have to wait till lock expire period (default 120 mins)?
Question
Question
Question
Question
Question
Question
Question
Discussion
Question
Question
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.