Click on the page to realize the automatic extension of session

Hello, everyone. I now need to implement a function. For example, the general system has set session-timeout to 30 minutes. During these 30 minutes, no matter how you operate and click on the system interface, the system will not quit automatically. Now my requirement is that in these 30 minutes, as long as I operate any page (except refresh and load), I need to automatically extend the session and not time out. How to achieve

Sep.11,2021

as long as you keep communication with the backend, you can keep session


after logging in normally, the time limit for the server to save the session of session, is 30 minutes. You already have this part of the logic, just add another operation to refresh the session. According to the relevant actions of the page, you call the interface to refresh session, that is, save session again.


each request refreshes the retention length of the session. So there is no such situation as yours.

Menu