rice-framework/krad-web/src/main/webapp/krad/scripts/krad.session.js
/**
 * Initializes timers objects for giving the session timeout warning dialog and the session timeout
 * dialog
 *
 * <p>
 * Note this will be invoked if enableTimeoutWarning is set to true in the View configuration
 * </p>
 *
 * <p>
 * This broadcasts a message through local storage so the timers for views opened in other windows
 * will reset as well. In addition, we setup a lister for the storage event so this window can receive
 * notifications from other windows about any updates or session dialog responses
 * </p>
 *
 * @param warningInterval number of seconds until timeout warning should be given
 * @param timeoutInterval number of seconds until timeout dialog should be shown
 */
Initializes timers objects for giving the session timeout warning dialog and the session timeout
dialog


Note this will be invoked if enableTimeoutWarning is set to true in the View configuration



This broadcasts a message through local storage so the timers for views opened in other windows
will reset as well. In addition, we setup a lister for the storage event so this window can receive
notifications from other windows about any updates or session dialog responses


@param warningInterval number of seconds until timeout warning should be given
@param timeoutInterval number of seconds until timeout dialog should be shown
Initializes timers objects for giving the session timeout warning dialog and the session timeout dialog Note this will be invoked if enableTimeoutWarning is set to true in the View configuration This broadcasts a message through local storage so the timers for views opened in other windows will reset as well . In addition we setup a lister for the storage event so this window can receive notifications from other windows about any updates or session dialog responses @param warningInterval number of seconds until timeout warning should be given @param timeoutInterval number of seconds until timeout dialog should be shown
function initializeSessionTimers(warningInterval, timeoutInterval) {
    sessionWarningTimer = new KradTimer(showSessionTimeoutWarning, warningInterval * 1000);
    sessionTimeoutTimer = new KradTimer(showSessionTimeout, timeoutInterval * 1000);
    broadcastSessionUpdate();
    window.addEventListener("storage", checkForSessionUpdate);
}
function initializeSessionTimers ( warningInterval , timeoutInterval ) { sessionWarningTimer = new KradTimer ( showSessionTimeoutWarning , warningInterval * 1000 ) ; sessionTimeoutTimer = new KradTimer ( showSessionTimeout , timeoutInterval * 1000 ) ; broadcastSessionUpdate ( ) ; window . addEventListener ( "storage" , checkForSessionUpdate ) ; }
Initializes timers objects for giving the session timeout warning dialog and the session timeout
 dialog
Initializes timers objects for giving the session timeout warning dialog and the session timeout dialog