How to terminate active user sessions from a multinode environment using an activity or from a HTML code
How to terminate active user sessions from a multimode environment using an activity or from a HTML code
***Moderator Edit: Vidyaranjan| Updated Categories | post moved from Mesh help***
-
Like (0)
-
Accepted Solution

Thanks Mike, this looks like might work for my requirement. I will check.
Method Requestor-Stop can be used here.
In fact there is an out of the box activity which gets triggered when a user press the close button of an external assignment ( via DWA )
It is Work-CloseAndTerminate under PegaProCom ruleset.
In second step it has a call to this LogXit activity which uses this method
Hi Santan,
Thanks for your response. My case is i have 4 sessions span across 6 node environment and when i try to enter one more session using a new session from browser i have to stop logging in and display a message saying "you already have 4 active sessions, please close them to continue for new session; Please Click Here to close other actve sessions". right now i am able to display the error message when i have 4 active sessions already but i should have the ability to close those 4 active sessions when i click on "Click Here" link from my message shown above, so i could accomodate for a new session. i am displayin the message on the login screen using "SHOW-HTML" rule. So is the "Requestor-Stop" method would close all my sessions which are span across multiple nodes?

Hi Chavak,
Could you give some idea how you implemented this. I need similar design.
Thanks
Sai
Hi
Since you are able to show the message to users, I assume that you are able to get the list of requestors programmitacly .
In order to achive your requirement, you need to store those requestor details in a pagelist.
Post that, you can have your own activity to iterate thru each of those pagelist items and call requestor-Stop
well I was able to get the Requestors details using JMX API and storing those in my custom database table. whenever somebody logging into PRPC at the login process (Authentication service activity) we will verify the count of requestors and display the error message accordingly. But in a case where user reached max sessions, we wanted to close them for him to get him logged into the sessions. I don't find any API or outofbox activity to close all the active sessions of a requestor in PRPC and need help with the same. the JMX API is fetching the requestors from weblogic deployed folders and not from PRPC tables I guess.

Hello,
You might want to take a look at the OOTB harness pzMultipleWindowWarning, which I believe has a link that does what you want to do.
Thanks,
Mike
Accepted Solution

Thanks Mike, this looks like might work for my requirement. I will check.