hello there.
i need to persist the form values of a particular web page so that if a user gets timed out then i can repopulate it when they return to that page. likewise, if a user fills half the form in then decides to browse a different page before returning later on, then i will also need to remember the values.
i dont believe that i can trap either of these events with a postback so at the moment i am thinking the best solution is to keep storing the form values inside a cookie every time the javascript onunload event handler fires. i can then repopulate from the cookie when a user comes back to the page. i can enforce that cookies is on for users of my application as it has a private user base so thats not a problem. however ive heard that certain popup stopper applications block this event handler so its perhaps not the best way.
is there a better way?
i need to persist the form values of a particular web page so that if a user gets timed out then i can repopulate it when they return to that page. likewise, if a user fills half the form in then decides to browse a different page before returning later on, then i will also need to remember the values.
i dont believe that i can trap either of these events with a postback so at the moment i am thinking the best solution is to keep storing the form values inside a cookie every time the javascript onunload event handler fires. i can then repopulate from the cookie when a user comes back to the page. i can enforce that cookies is on for users of my application as it has a private user base so thats not a problem. however ive heard that certain popup stopper applications block this event handler so its perhaps not the best way.
is there a better way?