It seems like such a simple thing, I’m amazed it’s not part of Microsoft’s whole webform architecture. I would like to keep a user’s session from timing out as long as he/she is still on the web page. Just ping the server, so to speak, periodically, to let it know that this session is still being used, even if the user has gone to lunch, gotten interrupted by a phone call or coworker, etc.
I’ve tried numerous ‘solutions’ that I have googled (jQuery heartbeat plugin, other javascript based things, AJAX controls, etc), but the only one I’ve gotten to work, is also about the simplest one I could find. It’s by Thomas Kurek and posted on Code Project.
http://www.codeproject.com/KB/session/Session_Defibrillator.aspx
So far, it has kept a session alive for over 16 hours. Keeping my fingers crossed that this one will be ‘the one’.