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

Redirect not happening after session timeout after upgrade



Post upgrade to Pega Platform 8.1.4, the below custom HTML on the Authentication Service (where the getDesktopApplication() is invoked) displays a null value and logoff does not occur when the session times out.

<pega:include name="DesktopWrapperInclude" type="Rule-HTML-FRAGMENT"/>
alert("Session has Timed Out - Please enter login details again");
  var application = getDesktopApplication();
 var myDesktop  = null;
 var myWindow = null;
 for(myDesktop = top; myDesktop != null; myDesktop = myDesktop.opener) {
    myWindow = myDesktop;
            myDesktop =;
            if (myDesktop.application &&
                myDesktop.ApplicationController &&
                (null != myDesktop.application)) {
            }else {

Error Messages

Not Applicable

Steps to Reproduce

  1. Upgrade PRPC 6.1 to Pega Platform 8.1.4.
  2. Log in to the application.
  3. Allow the session to time out.
  4. Click Ok on Timeout alert popup.

Root Cause

A defect in Pegasystems’ code or rules:

The Log Off script failed because the below code does not exist in the application.

var application = getDesktopApplication(); application.logOff();


Perform the following local-change:

Configure the Timeout stream with the below code.

var url = top.location.href; 
var redirecturl = url + "&pyActivity=Code-Security.LogOff&pzAuth=guest&logoff=true"
} else{
    top.location = redirecturl;

Published April 3, 2020 - Updated December 2, 2021

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