public static function update_recent_session_locks($sessionlock) {
        global $CFG, $SESSION;

        if (empty($CFG->debugsessionlock)) {
            return;
        }

        $SESSION->recentsessionlocks = self::get_recent_session_locks();
        array_push($SESSION->recentsessionlocks, $sessionlock);

        self::cleanup_recent_session_locks();
    }
public static function update_recent_session_locks($sessionlock) {
        global $CFG, $SESSION;

        if (empty($CFG->debugsessionlock)) {
            return;
        }

        $SESSION->recentsessionlocks = self::get_recent_session_locks();
        array_push($SESSION->recentsessionlocks, $sessionlock);

        self::cleanup_recent_session_locks();
    }
public static function update_recent_session_locks ( $ sessionlock ) { global $ CFG , $ SESSION ; if ( empty ( $ CFG -> debugsessionlock ) ) { return ; } $ SESSION -> recentsessionlocks = self :: get_recent_session_locks ( ) ; array_push ( $ SESSION -> recentsessionlocks , $ sessionlock ) ; self :: cleanup_recent_session_locks ( ) ; }
Updates the recent session locks.

This function will store session lock info of all the pages visited.

@param array $sessionlock Session lock array.
Updates the recent session locks .