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

Unauthorized user login for IAC



User is logging in using Internet Application Composer (IAC), a new Window pop up, user directly closes the window and the last session still remains. User requires an approach to end session on click of close button, currently clearing the session manually solves the issue.

This is a requirement at user end. Below mentioned function is called when closing the popup window:

function logoff() {
var logoffURL = "http://xyzdomain:7170/prweb/PRServlet/" + "!STANDARD" + "?pyActivity=Code-Security.LogOff";
xmlhttp=new XMLHttpRequest();"GET",logoffURL,true);
alert("i'm out logoff function");


Error Messages

No error message is displayed and unauthorized user is not challaged for password but allowed to login.

Steps to Reproduce

1. Create a Login IAC app.
2. Login to PRPC from IAC login app with valid credentials.
3. Close the window and on unload event call the above javascript.
4. Login to PRPC form IAC login App with invalid credentials. 

Root Cause

When using IAC,  all the requests are processed by PRPC through PRGateway only. In the given user code , logoff activity is calling through PRServlet so PRPC is not accepting it. In the code suggested, logoff activity is calling through PRGateway only and hence the behaviour is not reproducible.


This issue is resolved through the following local-change:

function logoff() {
var logoffURL = pega.web.config.gatewayURL+pega.web.config.systemID+"/!"+pega.web.config.appName+"/$"+pega.web.config.thread+"?pyActivity=Code-Security.LogOff&pzPrimaryPageName=pyDisplayHarness";
xmlhttp=new XMLHttpRequest();"GET",logoffURL,true);


Published July 20, 2015 - 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