ksmatthews Posted August 6, 2008 Share Posted August 6, 2008 HI All, I need to create an automatic logout for partly completed form pages with retention of any entered data. What I have in mind is a javascript based logout after say 10 mins of a page being left idle. Do you have any better ideas ? Also, after logging in again, how could the user return to that form and have displayed any previously entered data .. ? Not an easy one ! One last question: how can php/javascript be used to detect page activity (or idle pages) ? Any advice or links would be appreciated, Steven M Link to comment https://forums.phpfreaks.com/topic/118418-idle-pages/ Share on other sites More sharing options...
LemonInflux Posted August 6, 2008 Share Posted August 6, 2008 To detect page activity, you'll need loads of javascript actions (the ones that start with 'on'). Say, onMouseMove (I think, anyway) on the body tag, so if the user moves the mouse, it'll register. Then you'll need onKeyUp and onKeyDown on all of the form fields. What if the user disables javaScript? All of these become redundant. ---------------- Now playing: Enter Shikari - Mothership (Demo) via FoxyTunes Link to comment https://forums.phpfreaks.com/topic/118418-idle-pages/#findComment-609478 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.