Hello,
Consider the following scenario:
A Javascript/React application runs in a user’s dashboard. The app, allows the authenticated user to edit/update the database data,via an AJAX API.
Sometimes, the session times out, and the user only discovers too late, when the desired API action fails with an error.
We want to accomplish one, or more of the following:
- Have control of the session timeout value for UF. (I suppose this is set in php.ini?)
- Display a countdown timer to the user, for the session to expire. This value must be provided by UF (which means that UF/PHP must dynamically discover the session timeout value each time)
- Allow the user to reset the timeout counter, by an AJAX call, without leaving the page or lose the content they are currently editing. (is this possible? do sessions reset as with API calls?)
Any thoughts on the above? Thanks