includes/clientside/static/ajax.js
changeset 170 250aeb408ed7
parent 133 af0f6ec48de3
child 175 1465f48faba0
equal deleted inserted replaced
169:01bf6b1b8222 170:250aeb408ed7
  1140   {
  1140   {
  1141     if ( !keepalive_interval )
  1141     if ( !keepalive_interval )
  1142       keepalive_interval = setInterval('ajaxPingServer();', 600000);
  1142       keepalive_interval = setInterval('ajaxPingServer();', 600000);
  1143     var span = document.getElementById('keepalivestat');
  1143     var span = document.getElementById('keepalivestat');
  1144     span.firstChild.nodeValue = 'Turn off keep-alive';
  1144     span.firstChild.nodeValue = 'Turn off keep-alive';
  1145     ajaxPingServer();
       
  1146   }
  1145   }
  1147   else
  1146   else
  1148   {
  1147   {
  1149     if ( keepalive_interval )
  1148     if ( keepalive_interval )
  1150       clearInterval(keepalive_interval);
  1149       clearInterval(keepalive_interval);
  1153   }
  1152   }
  1154 };
  1153 };
  1155 
  1154 
  1156 function aboutKeepAlive()
  1155 function aboutKeepAlive()
  1157 {
  1156 {
  1158   new messagebox(MB_OK|MB_ICONINFORMATION, 'About the keep-alive feature', 'Keep-alive is a new Enano feature that keeps your administrative session from timing out while you are using the administration panel. This feature can be useful if you are editing a large page or doing something in the administration interface that will take longer than 15 minutes.<br /><br />For security reasons, Enano mandates that high-privilege logins last only 15 minutes, with the time being reset each time a page is loaded (or, more specifically, each time the session API is started). The consequence of this is that if you are performing an action in the administration panel that takes more than 15 minutes, your session may be terminated. The keep-alive feature attempts to relieve this by sending a "ping" to the server every 10 minutes.<br /><br />Please note that keep-alive state is determined by a cookie. Thus, if you log out and then back in as a different administrator, keep-alive will use the same setting that was used when you were logged in as the first administrative user. In the same way, if you log into the administration panel under your account from another computer, keep-alive will be set to "off".');
  1157   new messagebox(MB_OK|MB_ICONINFORMATION, 'About the keep-alive feature', 'Keep-alive is a new Enano feature that keeps your administrative session from timing out while you are using the administration panel. This feature can be useful if you are editing a large page or doing something in the administration interface that will take longer than 15 minutes.<br /><br />For security reasons, Enano mandates that high-privilege logins last only 15 minutes, with the time being reset each time a page is loaded (or, more specifically, each time the session API is started). The consequence of this is that if you are performing an action in the administration panel that takes more than 15 minutes, your session may be terminated. The keep-alive feature attempts to relieve this by sending a "ping" to the server every 10 minutes.<br /><br />Please note that keep-alive state is determined by a cookie. Thus, if you log out and then back in as a different administrator, keep-alive will use the same setting that was used when you were logged in as the first administrative user. In the same way, if you log into the administration panel under your account from another computer, keep-alive will be set to "off".<br /><br /><b>For more information:</b><br /><a href="http://docs.enanocms.org/Help:Appendix_B" onclick="window.open(this.href); return false;">Overview of Enano'+"'"+'s security model');
  1159 }
  1158 }
  1160 
  1159