Eric's Blog:
Update User's Session with AJAX
On Eric's Blog today, there's a method that they've discovered for updating a user's session with the help of a little Ajax.

On some applications I help to develop, users were complaining that they were getting timed out of the application.

Anyway we needed a solution to notify the user they were about to be timed out without posting back the page. Well since I am writing Ajax in Action, I proposed an Ajax solution. The Ajax solution keeps us from posting back the page to the server or opening up a pop up windw. Both methods have there flaws since the post back method can loose data if we happended to mis a viewstate field and the pop up window may be blocked by a pop up blocker. You can never be sure that the pop up would get through.

In the script uses a VB.NET (or JSP) code backend to accomplish the session restore, but it could be applied to just about anything. It times the session to whatever pre-determined timeout you have and, when it's about up, displays a Javascript popup to confirm the extension of the session's time...

Share your thoughts on "Update User's Session..." (0 comments)



<< Have a commment to share? Speak up now! >>


 All content copyright, 2005 AjaxDeveloper.org :: [email protected]