0
My doubt is a little complex:
Today I use a simple redirect just using HTML:
<meta HTTP-EQUIV='Refresh' CONTENT='480;URL=./logout.php?type=2'>
Where "CONTENT" is the regressive time (in seconds) it will count before redirecting. But I use this code as an auto-logout. As 480 seconds is 8 minutes, after 8 minutes without a page change or update the system will "depress" automatically. However, I had to add a new Eature in the system, where it is now normal to exceed that time.
What I really need is something (whether in Javascript/ajax/PHP/html/Jquery) to reset the time if the user is moving the mouse or keyboard (or interacting with the page) so that the system does not close in the middle of work.
In my head this is a bug, if anyone can help me... I really appreciate it!
I think the ideal is for you to do this control on the server-- invalidate the session after a certain downtime.
– Pablo Almeida
But doing this will not continue with the same problem no?
– Felipe Sá
Please clarify the phrase "where now is normal to exceed that time"
– Pablo Almeida
Ops Pablo, it was a Portuguese error of mine: "where now it is normal to exceed this time" actually is: "where now it is normal to exceed this time" (already corrected) if your doubt is about the Feature I added, it is a text editor, and this made the use on the same page much bigger causing several users to lose the text, since the system closed only
– Felipe Sá