[RCD] keep-alive changes

A.L.E.C alec at alec.pl
Wed May 2 08:15:34 CEST 2012


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


More information about the dev mailing list