Looking for example javascript code that reads the session timeout set by login authentication page and run as a timer to intercept the user before session times out (popup or better yet some neat AJAX div with a status message) telling them how much time they have left and hence they should SAVE their data (form input); if they don't the application redirects to the login page and all data is lost.