In my own POV, am making almost all calls to the server using Ajax, this is better experience and comes with it lots of advantages. However the failure to return data from the server because the user was logged out makes the page useless.
The aim of this ticket is to modify all methods in all controllers that are connected to by ajax calls to redirect the user to the login page in-case the user is logged out. The user is automatically logged out of openmrs after some time of in-activity.
It needs to likewise Reload the page whenever there's an error at server level