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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b164-2c26c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b164-2c26c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?