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

Warning popup does not display on adding SessionTimer section

SA-71539

Summary



On adding the SessionTimer section to the portal header, the warning popup does not display.


Error Messages



Not Applicable


Steps to Reproduce

  1. Add 120 seconds in the access group requestor timeout.
  2. Add pxSessionTimer section to pyPortalHeader with 1 minute as the Warning time and 2 minutes as the Timeout.
  3. Wait for a minute for the warning popup to display. The popup does not display after one minute. Whereas, after two minutes, the requestor times out.


Root Cause



The code to display the warning timer was missing in the pxSessionTimer section.


Resolution



Perform the following local-change:
  1. Save As the pxSessionTimer to the application ruleset.
  2. In the HTML, add the below code.

    <script>
          pega.d.TimeoutTime = '<%=pyTimeoutTime%>';
          pega.d.TimeoutWarningWindow = '<%=pyTimeoutWarningWindow%>';
          pega.d.TimeoutPopuptype = '<%=pyTimeoutPopupType%>';
          pega.d.TimeoutWarningCountdown = null;
          pega.d.TimeoutPopupHeight = "<pega:lookup className="Rule-Obj-FieldValue" property="pyLocalizedValue"><pega:key name="pyClassName" value ="Rule-Portal" /><pega:key name="pyFieldName" value="pyTimeoutPopupType" /><pega:key name="pyFieldValue" value="WindowHeight" /></pega:lookup>";
          pega.d.TimeoutPopupWidth = "<pega:lookup className="Rule-Obj-FieldValue" property="pyLocalizedValue"><pega:key name="pyClassName" value ="Rule-Portal" /><pega:key name="pyFieldName" value="pyTimeoutPopupType" /><pega:key name="pyFieldValue" value="WindowWidth" /></pega:lookup>";
          pega.d.TimeoutWarning = '<%=warningMsg%>';
        </script>

  3. Add the Save As section to the portal header.

 
Suggest Edit

Published January 20, 2019 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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