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

pxSessionTimer timeout warning displaying at wrong time

SA-20063

Summary



Implemented a pxSessionTimer to handle timeouts. Once moved into production end users are complaining that this timeout warning is displaying to often or when they are actually working in the system. It looks like this the session timer is not resetting during CTI screen pops .

The timeout is set to 60 and the warning set to 15, so the warning message should display at 45 mintues of idle time. No issue in lower environments and end users maybe just not used to the warning.


Error Messages



No Error messages


Steps to Reproduce



Not Applicable.


Root Cause



The problem was with pxSessionTimer being located in the same dynamic layout of the CPM CTI softphone toolbar.  The CTI softphone toolbar refreshes the section leaving a pega.desktop.TimeoutWarningCountown timer that can't be cleared using clearTimeout.

This casues the warning timeout to be displayed even though users have been working on the sytem


Resolution



Perform the following local-change:

In the SessionTimer update the desktop_restartTimeoutWarningTimer to inlude a line of code to set the pega.desktop.timeotuWarningCountdown to null;

function desktop_restartTimeoutWarningTimer(){
        if (pega.desktop.TimeoutTime && pega.desktop.TimeoutTime > 0) {
        /* Calculate the time to initial warning in milliseconds*/
        var nTimeoutWarningTime= (pega.desktop.TimeoutTime - pega.desktop.TimeoutWarningWindow) * 60000;

        /* Clear the existing countdown */
        clearTimeout(pega.desktop.TimeoutWarningCountdown);
        pega.desktop.timeoutWarningCountdown = null;

        if (nTimeoutWarningTime >= 0) {
            if (DesktopUserSessionInfo_gRedirectOnTimeout) {
                pega.desktop.TimeoutWarningCountdown = self.setTimeout("desktop_showTimeoutLogoffDialog('"+pega.desktop.TimeoutWarningWindow+"')",nTimeoutWarningTime);
            }'
            else {
                /* Set the warning to go off */
                pega.desktop.TimeoutWarningCountdown = self.setTimeout("desktop_showTimeoutWarningCUSTOM()", nTimeoutWarningTime);
            }    
        }
    }    
}

Published February 22, 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