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.