SimpleSAML_Session::load PHP Method

load() private static method

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.
private static load ( SimpleSAML_Session $session ) : SimpleSAML_Session
$session SimpleSAML_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;
    }