>At 01:09 PM 02/11/03 -0500, Scott Wilhelm wrote: > >Does anyone have a good solution for a session timer? I'd like to be > >able to add something to my CMS that will prompt users at certain time > >intervals about their session status. > >I was thinking one could write something in Javascript to do this, but I'm >not sure how.
In my quest to try and convince Macromedia during the Neo beta last year to put some sort of auto-logout feature into the CF Administrator (as an additional security measure against those who leave their machine but stay logged-in, hence allowing anybody to come and mess with the settings), I built a small proof-of-concept using JavaScript. (This, of course, didn't make it in to MX, but I'm not giving up!!) Essentially, what the script does is detects mouse movement. If, after any time interval you specify (I use 10 seconds just for demo-ing) the mouse hasn't moved, a centered popup window appears alerting you that the system hasn't detected any activity during that interval. You can then choose to either stay logged in or logout by choosing a simple Yes or No link. If you choose yes, the popup closes and you can continue. If you choose No, the logout script is run and you are re-directed to the login page. If no selection is made after another 10 seconds, this signifies that the user has left their machine and you are automatically logged out. If you are interested in seeing this code (it's 3 templates and very barebones, but functional and should get you in the right direction if it's not enough), I'd be happy to zip it up and send it to you. Just e-mail me off-list and I'll shoot you a copy. Regards, Dave. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

