Jquery会话超时对话框无法正常工作

时间:2014-12-22 14:23:25

标签: jquery

即使在用户空闲或活动后,它也会在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);

0 个答案:

没有答案