You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
815 B
28 lines
815 B
var SessionTimeout = function () {
|
|
|
|
var handlesessionTimeout = function () {
|
|
$.sessionTimeout({
|
|
title: 'Session Timeout Notification',
|
|
message: 'Your session is about to expire.',
|
|
keepAliveUrl: '../demo/timeout-keep-alive.php',
|
|
redirUrl: 'page_user_lock_1.html',
|
|
logoutUrl: 'page_user_login_1.html',
|
|
warnAfter: 5000, //warn after 5 seconds
|
|
redirAfter: 10000, //redirect after 10 secons,
|
|
countdownMessage: 'Redirecting in {timer} seconds.',
|
|
countdownBar: true
|
|
});
|
|
}
|
|
|
|
return {
|
|
//main function to initiate the module
|
|
init: function () {
|
|
handlesessionTimeout();
|
|
}
|
|
};
|
|
|
|
}();
|
|
|
|
jQuery(document).ready(function() {
|
|
SessionTimeout.init();
|
|
});
|