Making OpenEMR more robust to session issues preventing data posting

This is just a feature wish … making OpenEMR more robust to session issues preventing data posting …
I am seeing this on some web-based software.
Essentially the way something like this works is that …

  1. if the session times out or there is another problem, …
  2. … when the user presses “save” the page code will recognize that it lost connection to the session …
  3. … and ask the user for password again in a tiny (abbreviated) login dialog and …
  4. … then attempt to login, create a new session, and attempt to post the data so that nothing that was entered on the form so that no entered information is lost due to the session error/disconnection/timeout.
    –RBL

Raif:

This small GitHub library does exactly what you are talking about:
https://github.com/FThompson/FormPersistence.js/blob/master/README.md

That being said, saving storage locally in the browser to make it between session resets has security implications / not handled easily. Usually it comes down to needing to use IndexDB instead of any of the other HTML5 storage APIs.

Thank you, Dan! I will check it out.

Ralf