Relocating question over here; Does anyone have a ...
# javascript
p
Relocating question over here; Does anyone have a general approach or library they use for prompting for a session timeout? We currently have a JS library called session timeout (https://github.com/travishorn/session-timeout) to prompt the user their session is going to timeout or for them to continue it and we just hit a CF page to keep alive. BUT we have users who open numerous tabs so don't see the first tab's timeout prompt and their session times out in their current tab. So we need a solution that can prompt and track across all tabs and prompt. Thanks for any feedback.
a
@Patrick are you able to update your plugin to use localstorage vs a cookie or session storage? We had to update our bootstrap-session-timeout script to use localstorage to allow any interaction on any of the open tabs to track as activity.
p
We could change it but I was hoping there was already a lib out there to do this. You could share yours 🙂 if you don't mind. Or any advice on how or what would need changed.
a
Here's the fork I use of bootstrap-session-timeout: https://github.com/bhhaskin/bootstrap-session-timeout
The fork adds some additional variables to the actual commit...that's the only reason I shared both.
p
Okay cool, we will have to give this a whirl and see how it performs. Thanks Adam!