zillo32 / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Session keep alive service for admin console #441

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is feature request, not bug.

I suggest adding simple javascript on all admin pages, that shall 
periodically (eg, once in 5 minutes) ping server with some light 
requests that shall keep session alive while browser is open. 

Currently it is quite annoying to periodically re-login when working on site 
for long periods of time.

Increasing session timeout value in web.xml is not practical, as there is no 
value big enough, and it also has negative impact cause we have to store more 
sessions, which are actually not needed in most cases. Using simple javascript 
ping requests we can achieve desired effect even with reduced session timeout.

It could be something like this:

function doPing() {
  new Image().src='/some-little-static-image-file.png?r='+Math.random();
}

setInterval(doPing, 5*60000); // once in 5 minutes

Theoretically requesting ststic resource should keep session alive, although 
this needs to be tested for GAE.

Regards, 
Yaroslav

Original issue reported on code.google.com by yaro...@gmail.com on 25 Feb 2011 at 9:28

GoogleCodeExporter commented 8 years ago
Session timeout set to 10hr.

Original comment by kinyelo@gmail.com on 3 Apr 2011 at 1:09