Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Pega logs user off when a non-pega portal link is clicked



Pega application is embedded in a third-party application using a Internet Application Composer (IAC) mashup which is also able to display other tools. When clicking buttons in a top level framework which trigger javascript functions via html href elements as opposed to onClick actions, the page onBeforeUnload events are fired and the Pega application is logged off.

Error Messages

Session is logged out

Steps to Reproduce

Within the IAC mashup page include the following HTML:

<a href="">Test link with JS</a>

When testing click this application link and notice that the page and PRPC onbeforeUnload events are fired. 

Root Cause

This is a known issue with Microsoft Internet Explorer 9 when running in Quirks Mode. 

There was a configured onBeforeUnload event to trigger logging the user off of PRPC that was also getting fired when users where clicking links that contained javascript within the top level application. 



The top level application could not modify the scripting to get rid of the scripting within href elements. 

Instead it is suggested to move the PRPC logoff to the body unload event.

This resolves the logoff issue, however the onBeforeUnload events still fires for the standard PRPC harness events.

This does not appear to be causing any side affects.


Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community 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.

Close Deprecation Notice
Contact us