Like in stackoverflow, I would like that if a user begins to enter text (lets say a lot of text) and נט accident closes the window (or goes back in the browser) when the user returns the unfinished text will be saved and displayed in that text box.
this without submitting.
Do I need to keep it in session[] or something similar?
Is it even possible doing it elegantly or do I need complex infrastructure to support it?
Thanks
You can’t do this with a submit. You could do a silent ajax/jquery submittal to store the information. You could store it anywhere but it would depend on its sensitivity. A cookie generally works.