Managing Server Timeout
Managing Server Timeout
function checkTimeout() {
myinterval = ctime - top.currenttime;
if (top.appframe.location.href.indexOf("/login/index.cfm") == -1) {
if (myinterval > defaultnotification && myinterval < defaulttimeout) {
showModelessDialog(basehref + '/timeoutmessage.cfm',window,"status:no;help:no;dialogWidth:350px;dialogHeight:200px");
if (myinterval >= defaulttimeout) {
top.appframe.location.href=basehref + '/login/logout.cfm';
currenttime = mydate.getTime();
window.setInterval("checkTimeout()", 180000);