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
Post a Comment