Discussion

Launching User Portal

Am using redirectAndrun activity to load (on a popup window) a portal based on the accessgroup.

It works fine for first time when I launch the portal by a button click event. When I try for the second time, it throws "Another PRPC session is running.." error.

Question:
Is there any way, we can launch the portal with a new session every time the button is clicked?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

May 28, 2012 - 7:25pm

Firgured out.. :)

In RedirectAndRun activity, enable the option "bPurgeTargetThread".

Its a boolean that determines whether or not to delete the contents of the target thread before switching to it.

September 6, 2012 - 10:36am

Hi balaji.
I am stuck with similar problem where i should open portal in a pop up window.Can you please help me out.

quote:


Originally posted by BALAJI84S

Am using redirectAndrun activity to load (on a popup window) a portal based on the accessgroup.

It works fine for first time when I launch the portal by a button click event. When I try for the second time, it throws "Another PRPC session is running.." error.

Question:
Is there any way, we can launch the portal with a new session every time the button is clicked?


September 7, 2012 - 1:51am

quote:


Originally posted by BALAJI84S

Firgured out.. :)

In RedirectAndRun activity, enable the option "bPurgeTargetThread".

Its a boolean that determines whether or not to delete the contents of the target thread before switching to it.


Thanks for responding back with solution

March 13, 2013 - 11:42am

Hi balaji, 

I am also trying to launch a portal by using RedirectAndRun. However i am unable to determine the correct string to use for the parameter "Location". Any tips on how i could find this? Thanks,

March 26, 2013 - 3:41pm

Garret - when you are using a URL that has senstive information, that exposes your activties or your security team urges compliance to url encoding, you would check bEncodeLocation from the calling activity. This would then encode your pega app URL. Location param will be in the step page, you may not require to set it explicitly.

March 26, 2015 - 6:49pm

Hi,

 

I have a similar requirement to launch a new portal in our application. But this needs to be done in a composite portal where it can have multiple threads. When I tried the above steps, it perfectly worked fine except getting a problem as the system uses the same threads even in the new portal.

Even if we provide a thread name as a parameter in redirectAndRun activity, the portal is loaded in a new thread name but when ever we open new tabs in new composite portal pop up, the parent threads get overridden too. I think even though it opens in a new window, it is not opened as a new session all together and share the same memory slot.

Really appreciate if any 1 can help me on this. Thanks in advance...

March 26, 2015 - 10:00pm

Hi Sbratnayake -

If they are different threads, then they will have seperate clipboard memory. Does your secondary portal also have multi-thread capability? If so, there are chances that same thread name exists.

 

I mean, if we assume

Primary portal - Standard Thread, Thread1, Thread2....

Secondary (if multi-thread is yes) - Ext Thread, Thread 1, Thread2...

 

Thread1 & Thread2 are common between portals, hence could cause data corruption

 

can you share some more details on the implementaton with specific code snippets to understand. Also clipboards (list of threads) screenshot?

March 27, 2015 - 12:59am

Hi Balaji,

Thanks you very much for the response.

Your understanding is exactly correct. Even the secondary portal supports multiple threads. I just need to open the secondary portal with a different requestor due to data corruption. Even if the user needs to login multiple time, that is fine.

What i did was that I have called the redirectAndRun activity on a link in the portal where it will open the secondary portal in another window. I need this to be opened from a different requestor so that the threads will not be shared.

Really appreciate your support on this.

September 14, 2015 - 3:17am

Hi sbratnayake 

Did you find any solution for this issue? If yes please share it.

Thanks in Advnace :)