Table des matières

Securing sessions

Block Use Stats / Roadmap

The problem

Computing sessions only on the basis of the user's explicit interactions with the platform raises several metric problems, notably at the “boundaries”.

If session entry is generally marked by an explicit “loggedin” event, logout or implicit session break is harder to work around:

In each of these cases, the user trace frame stops for a given time, until it reappears after a while, with or without reconnection depending on the situation and on the session cookie lifetime.

The initial solution consisted in defining an average time credit to add to any detection of a sufficiently long break in the trace frame, meant to compensate for the uncertainty about activity time after this last trace. This device proves effective under certain conditions:

Unfortunately, field experience shows that:

Envisaged solution

The session securing solution consists in inserting an automatic active script that can keep recording trace signals as long as the Moodle session is active in the browser, with or without explicit user activity. This signal measures the “connected” range of the user agent (but not the actual presence of the user behind the user agent).

This device however only correctly solves the first three session break cases, but fails to detect the last case (connected inactivity). An evolution of this solution should be able to arm a finite emission time (longer than the emission period) in order to stop the presence simulation after a certain time (probably equivalent to the lifetime of the Moodle session).

There remains in any case an insoluble uncertainty about the actual activity of the remote user and whether or not it is really related to learning. This discrimination is not within reach of the digital system. Only fine segmentation of activities and explicit interactions with the platform can guarantee continuity of attention and its correct measurement by the system.

Consequences of the solution

Apart from the “connected inactivity” case, the new session securing device limits the uncertainty to the emission period of the presence simulation (heartbeat). If this signal is emitted every 10 minutes, the uncertainty rate on the time spent after the last trace is at most this same period.

Setting this period between 5 minutes and up to 15 minutes is therefore recommended.

This technique can have an impact on the overall server load.


Back to the Component index - Back to plugins index - Back to catalogue