Support Article
Warning popup does not display on adding SessionTimer section
Summary
On adding the SessionTimer section to the portal header, the warning popup does not display.
Error Messages
Not Applicable
Steps to Reproduce
- Add 120 seconds in the access group requestor timeout.
- Add pxSessionTimer section to pyPortalHeader with 1 minute as the Warning time and 2 minutes as the Timeout.
- 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:
- Save As the pxSessionTimer to the application ruleset.
- 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> - Add the Save As section to the portal header.
Published January 20, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.