Checkout orange hill's fork which was created because of the same problem.
Bootstrap session timeout - reset counter on mousemove
-
12-06-2023 - |
Pregunta
Bootstrap's session timeout plugin doesn't seem to support resetting the count towards session end, whenever the user moves the mouse. So, for instance, the default 15 mins warnAfter
value will pop the message 15 mins afters login, regardless of user activity.
$.sessionTimeout({
logoutUrl:AppData.paths.appPath + "/logout",
redirUrl:AppData.paths.appPath + "/logout",
warnAfter:10000
// will trigger the popup after 10 secs regardless of user activity
});
I haven't found any option that might tackle this issue. Is there way to overcome it?
Solución
Otros consejos
Use the next property:
ignoreUserActivity: false
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow