-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
When using custom callbacks, onSessionExtended event is not being fired:
$.jTimeout(
{
expiration_key: 'jtimeout-session-expiration',
flashingTitleText: '!!!',
timeoutAfter: 25,
extendUrl: '/ping',
logoutUrl: '/logout',
loginUrl: '/login',
secondsPrior: 10
onPriorCallback: function () {
$('#modal-session-timeout').modal('show'); //works fine
},
onTimeout: function () {
window.location = '/logout'; // works fine
},
onSessionExtended: function () {
$('#modal-session-timeout').modal('hide'); // does not get fired
}
}
);
$('.btn-extend-session').on('click', function () {
$.jTimeout.reset();
$('#modal-session-timeout').modal('hide');
});
Session gets renewed but boostrap modal window remains open. Any idea how to fix that?
Metadata
Metadata
Assignees
Labels
No labels