javascript - Redirect user after 60 seconds of inactivity? -


how can use javascript on site redirect user /logout page after 60 seconds of inactivity?

setting timer straightforward know: want redirect inactive users, not disrupt someone's session.

is possible javascript?

i belive looking this:
http://paulirish.com/2009/jquery-idletimer-plugin/

if code yourself, need capture mouse , keyboard events , restart timer after of these events. if timer ever reaches threshold or counts down 0 threshold can reset url of page.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -