On 05/01/2012 02:05 PM, Thomas Bruederli wrote: > OK, now I understood entirely what you suggested. > > So the implementation would be something like: > > on (<page load>) > setTimeout(<send keep-alive>, session_lifetime / 2) > > on (<send some ajax request>) > clearTimeout(<send keep-alive>)
we could handle also non-ajax requests in frames maybe. > on (<get ajax response or error>) > setTimeout(<send keep-alive>, session_lifetime / 2) Something like that, but with setInterval/clearInterval. -- Aleksander 'A.L.E.C' Machniak LAN Management System Developer [http://lms.org.pl] Roundcube Webmail Developer [http://roundcube.net] --------------------------------------------------- PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl _______________________________________________ Roundcube Development discussion mailing list [email protected] http://lists.roundcube.net/mailman/listinfo/dev
