We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello i can kick out the user when i change the tab but when i close is and open it back the user wouldnt be kicked out. Can anyone help me with that.
$(document).idle({ onIdle: function(){ Swal.fire({ title: 'Oturum Sonlandırıldı', text: "5 Dakikadır herhangi bir işlem yapılmadığından dolayı oturumunuz otomatik olarak sonlandırıldı!", icon: 'warning', showCancelButton: false, confirmButtonColor: '#3085d6', confirmButtonText: 'Tamam' }).then((result) => { if (result.value) { window.location.href = "assets/includes/logout.php"; } }); }, onShow: function(){ window.location.href = "assets/includes/logout.php"; }, idle: 3000 // Kick out after 1 Minute (60000 ms is equal to 1 min) })
The text was updated successfully, but these errors were encountered:
I'm pretty sure that when you close the tab, all the timeouts that were set go away with the tab. Maybe you are looking for something like this https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload
Sorry, something went wrong.
No branches or pull requests
Hello i can kick out the user when i change the tab but when i close is and open it back the user wouldnt be kicked out. Can anyone help me with that.
$(document).idle({ onIdle: function(){ Swal.fire({ title: 'Oturum Sonlandırıldı', text: "5 Dakikadır herhangi bir işlem yapılmadığından dolayı oturumunuz otomatik olarak sonlandırıldı!", icon: 'warning', showCancelButton: false, confirmButtonColor: '#3085d6', confirmButtonText: 'Tamam' }).then((result) => { if (result.value) { window.location.href = "assets/includes/logout.php"; } }); }, onShow: function(){ window.location.href = "assets/includes/logout.php"; }, idle: 3000 // Kick out after 1 Minute (60000 ms is equal to 1 min) })
The text was updated successfully, but these errors were encountered: