After a set amount of idle time, a Bootstrap warning dialog is shown to the user with the option to either log out, or stay connected.
Prefer the below example, for basic setup of bootstrap timeout.
<!-- Bootstrap-session-timeout JavaScript -->
<script src="dist/js/bootstrap-session-timeout.js"></script>
$.sessionTimeout({
keepAliveUrl: false,
logoutUrl: 'login.html',
redirUrl: 'signup.html',
warnAfter: 1000,
redirAfter: 1000000,
countdownBar: false,
keepAliveButton: 'Continue working',
title: 'Session expiring',
message: '',
countdownMessage: 'You have been gone for a while, we will log you out in {timer} unless you continue session to stay signed in.'
});