Session timeout not working as expected

Session timeout not working as expected

by Chad O'Brien -
Number of replies: 2
Hi all,

Been having some issues running time on task reports - for a seemingly random assortment of students, the times are significantly inflated. We've narrowed it down to an issue with the session handling; specifically, the session timeout is set to an hour but, for some yet unknown reason, it doesn't always log students out after an hour of inactivity. Below is an excerpt from the mdl_logstore_standard_log table:



As you can see, the user logged in and was allowed to view their dashboard for over twelve hours without being automatically logged out due to inactivity.

We are running:
  • Moodle 3.11.4
  • MySQL 5.7.12
  • PHP 7.4.27

Any help you can offer will be greatly appreciated!

Chad O'Brien

Web Developer - Kentucky Educational Television

Average of ratings: -
In reply to Chad O'Brien

Re: Session timeout not working as expected

by Dominique Palumbo -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi,

Maybe you can go to watch and verifiy if the task '\core\task\session_cleanup_task' is launched and well configure ?

Have a nice day.

Dominique.

Average of ratings: Useful (1)
In reply to Dominique Palumbo

Re: Session timeout not working as expected

by Chad O'Brien -
Thanks for the response! Yes, the session_cleanup_task is configured appropriately and functioning as expected:

The log table for Moodle's session_cleanup_task()