I have a asp.net(2.0) app and I need to come up with a javascript function that will timeout after a certain time period of inactivity.
To be more specific, if a user has not 1) entered text in a field 2) clicked any links, within the last X minutes, the browser will close. Could/should this be done like a screensaver where it would be based on keyboard/mouse activity?
Wondering if someone might point me in the right direction. I’m guessing I would put this code on the master page, but I’m not sure of the best way to incorporate it on all of my other pages. My thought is putting a timer on the master page and the code on each page or possibly most controls that would basically “reset the timer”. Is there a better way of doing this?