即使在用户空闲或活动后,它也会在15分钟后将我退出,并且在鼠标移动时它会在日志中显示为活动状态...
var timeout = 5000;
$(document).bind("idle.idleTimer", function () {
console.log("idle");
$("#status").html("User is idle :(").css("backgroundColor", "silver");
var active = $.timeoutDialog({
timeout: 780,
countdown: 120,
logout_redirect_url: location.protocol + "//" + location.host + appContext + "/medikmError",
restart_on_yes: true
});
});
$(document).bind("active.idleTimer", function () {
console.log("active");
});
$.idleTimer(timeout);