|
|
@ -8534,7 +8534,10 @@ function rcube_webmail()
|
|
|
|
if (this._keepalive)
|
|
|
|
if (this._keepalive)
|
|
|
|
clearInterval(this._keepalive);
|
|
|
|
clearInterval(this._keepalive);
|
|
|
|
|
|
|
|
|
|
|
|
this._keepalive = setInterval(function(){ ref.keep_alive(); }, this.env.session_lifetime * 0.5 * 1000);
|
|
|
|
// use Math to prevent from an integer overflow (#5273)
|
|
|
|
|
|
|
|
// maximum interval is 15 minutes, minimum is 30 seconds
|
|
|
|
|
|
|
|
var interval = Math.min(1800, this.env.session_lifetime) * 0.5 * 1000;
|
|
|
|
|
|
|
|
this._keepalive = setInterval(function() { ref.keep_alive(); }, interval < 30000 ? 30000 : interval);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// starts interval for refresh signal
|
|
|
|
// starts interval for refresh signal
|
|
|
|