This commit is contained in:
2022-02-22 18:12:37 +00:00
parent 4a394d3ff7
commit 1ac4c7f51a
34 changed files with 949 additions and 671 deletions
+5 -5
View File
@@ -359,18 +359,18 @@
// Session.
sax.configureKeepLoggedIn = function (single)
{
sax.debug('KeepLoggedIn Configuring');
//sax.debug('KeepLoggedIn Configuring');
let kli = sax.kli;
if (!kli.timeout) kli.timeout = setTimeout(function () { sax.doKeepLoggedIn(single); }, Math.max(30000, kli.interval || 300000));
}
sax.doKeepLoggedIn = function (single)
{
sax.debug('KeepLoggedIn Calling');
//sax.debug('KeepLoggedIn Calling');
let kli = sax.kli;
delete kli.timeout;
var onKeepLoggedIn = function (response)
{
sax.debug('KeepLoggedIn Responded', response);
//sax.debug('KeepLoggedIn Responded', response);
kli.lastAt = sax.getTime();
if (!single) sax.configureKeepLoggedIn();
}
@@ -378,13 +378,13 @@
}
sax.configureSessionRefresh = function ()
{
sax.debug('SessionRefresh Configuring');
//sax.debug('SessionRefresh Configuring');
$(document).on('mousedown mousemove touchstart scroll keydown', sax.triggeRefreshSession);
}
sax.triggeRefreshSession = function ()
{
if (sax.kli.timeout) return;
sax.debug('SessionRefresh Triggering');
//sax.debug('SessionRefresh Triggering');
sax.configureKeepLoggedIn(1);
}