Home Synchronzied Timer to keep track of Session Timeout
Reply: 0

Synchronzied Timer to keep track of Session Timeout

user952 Published in April 22, 2018, 10:05 pm

I'm using Grails 2.3.11. I have a web-app where users are allowed to have 1 hour of inactivity before the session expires. To help users keep track of time, I have a countdown timer on every page with use of the TimeTo-jQuery plugin . Of course on each new page/refresh the timer resets to 1 hour. Problem is, if multiple pages are open, then the timers are of course out of sync. I have methods to alert users when they have 30 minutes left and if they have multiple windows open, then this alert would be inaccurate. Is there a way to keep multiple timers in-sync per user when it comes to tracking time left in a session? I am not married to this jQuery plugin so I don't mind a different implementation, but I have to use Grails 2.3.11 since this is the environment.

I don't want the session to stay alive with multiple idle pages but I fear that trying to keep multiple timers in-sync would be keeping the sessions alive.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.305541 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO