v1.2.3.2
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user