/** * Load a given session as the current one. * * This method will also set the track ID in the logger to the one in the given session. * * Warning: never set self::$instance yourself, call this method instead. * * @param SimpleSAML_Session $session The session to load. * @return SimpleSAML_Session The session we just loaded, just for convenience. */ private static function load(SimpleSAML_Session $session) { SimpleSAML_Logger::setTrackId($session->getTrackID()); self::$instance = $session; return self::$instance; }