I have an intranet system, which sellers attend some classes.
Sometimes they leave the window open at that URL for days.
The system via ajax has a counter, so if the page is open, it will be requesting and recording on the bank that the face is online.
But as I said, he can leave the window open for days.
I think the best way, would be to catch if he moved the mouse.
So what I need is, how to know if it takes more than 30 minutes (for example) that it does not move the mouse.
With this, when I spend 30 minutes without moving the mouse, I can display a dialogue on the screen, asking, are you still there? if it does not respond (within 30 seconds for example), I uncheck it.
My question would be, how do I know if it does more than 30 minutes (for example) that it does not move the mouse
Any suggestions?