Moodle

sessiontimeout configuration seems to be ignored

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: 2.0
  • Component/s: Administration
  • Labels:
    None

Description

Originally reported in debian bug #303639 I tested a different scenario to the reporer on MOODLE_19_STABLE which also doesn't work:

1/ Set sessiontimeout to 5mins
2/ Logout and log back in again and click around a few pages
3/ Leave the page for 10mins
4/ Attempt to follow a new link on site:

Expected result:
User session times out and is force to log back in again.

Actual result:
User is kept logged in and session is sitll active

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

We do not have any control over session file cleanup, sorry.
There will be a new database session code in 2.0

As a workaround you may set gc probability close to 1 on sites will low number of hits.

Show
Petr Škoda (skodak) added a comment - We do not have any control over session file cleanup, sorry. There will be a new database session code in 2.0 As a workaround you may set gc probability close to 1 on sites will low number of hits.
Hide
Petr Škoda (skodak) added a comment -

should work now 100% correctly if using db sessions - the timeout is now checked when reading session data,
the legacy file based session work the same as before (depends on gc probability and sometimes external session timeout scripts)

thanks for the report

Show
Petr Škoda (skodak) added a comment - should work now 100% correctly if using db sessions - the timeout is now checked when reading session data, the legacy file based session work the same as before (depends on gc probability and sometimes external session timeout scripts) thanks for the report
Hide
Gary Marsh added a comment -

I am using Moodle version 1.9.5 build 20090515 on our dedicated server.

I have the session timeout set to 4-hours but moodle consistently times out within a minute of 41-minutes. Until now, I didn't suspect that moodle was ignoring the timeout setting and have been working with the server administrator, without success, trying to figure out why moodle is timing out. Today, I tried the suggestion in the above description but that didn't work for me.

We are about to open up the site to our first online students and I m concerned that they will be inconvenienced by the timeout problem as I envisage long idle times will occur due to lengthy timed quiz calculations, etc. Does anyone know how to resolve this timeout problem?

Show
Gary Marsh added a comment - I am using Moodle version 1.9.5 build 20090515 on our dedicated server. I have the session timeout set to 4-hours but moodle consistently times out within a minute of 41-minutes. Until now, I didn't suspect that moodle was ignoring the timeout setting and have been working with the server administrator, without success, trying to figure out why moodle is timing out. Today, I tried the suggestion in the above description but that didn't work for me. We are about to open up the site to our first online students and I m concerned that they will be inconvenienced by the timeout problem as I envisage long idle times will occur due to lengthy timed quiz calculations, etc. Does anyone know how to resolve this timeout problem?

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: