When the user’s session times out, this message is displayed in a box (or some variation of it, sometimes mentioning sessions variables).
Unable to connect to the database: The php session time out has expired or the connection parameters are incorrect.
This is not user friendly. At all.
Is there a “nice” way to detect a session timeout and, preferably redirect the user back to the login app?
If this is not easily achieved, can these messages be changed/configured to say something less technical and more user friendly? For example, “Your session has been idle for too long. Please close the browser tab and login again. Thank you.”
Regards.