Hi There!
As you know Moodle by default do this when you set TImeout on Session handling => If users don't load a new page during the amount of time set here, Moodle will end their session and log them out. But, is possible to set a session time no matter if the user load or don't load a new page? in other words, set the session time for the time that user spend on the course that he is enrolled; for example: limited to 2 hours per course that the user is enrolled.
Thanks