original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Updates the recent session locks.
  
  This function will store session lock info of all the pages visited.
  
  @param array $sessionlock Session lock array.
docstring_tokens: Updates the recent session locks .