For the autologout demo, on lines 147+
//On mobile js is paused, so see if this was triggered while we were sleeping
if (diff >= session.warningTimeout || warning <= session.minWarning) {
$("#mdlLoggedOut").modal("show");
} else {
To make sure I understand the code correctly:
Let's say warningTimeout is 10 minutes, and minWarning is 5 seconds.
This will logout the user if they are on a different app for 10 or more minutes, which make sense.
But wouldn't the warning <= session.minWarning logout the user if they went to an app for less than 5 seconds? I think it's supposed to be warning >= session.minWarning.
If am wrong about this, could you please tell me why? Thanks in advance.
For the autologout demo, on lines 147+
To make sure I understand the code correctly:
Let's say warningTimeout is 10 minutes, and minWarning is 5 seconds.
This will logout the user if they are on a different app for 10 or more minutes, which make sense.
But wouldn't the
warning <= session.minWarninglogout the user if they went to an app for less than 5 seconds? I think it's supposed to bewarning >= session.minWarning.If am wrong about this, could you please tell me why? Thanks in advance.