Client Side Form PersistenceApplication Servers considered obsolete
With HTML5 a purely client side state named local storage was introduced. This behaves like a session cookie. It is however
- not transmitted to the server,
- can store larger amounts of data and
- works on a by tab basis.
The last point is a real improvement when using local storage for view state.
- Add a script tag that loads
- name the forms you want to persist with a unique
name using the
- mark the fields you do not want to persist with
Note that all fields with a name persist by default
once a form is named for persistence. This includes password fields.
Be aware that local storage may be stored on disk and mark
sensitive fields with
Be also aware that this currently is a proof of concept implementation and has not been sufficiently tested. The tested browsers are Firefox 3.5, Firefox 11 and Chrome 22.
formPersistence.js library requires
the HTML5 sessionStorage object and JSON support.
Fill the forms below with nonsense and press "Submit" to test form persistence.