Get a session from the session handler.
public static getSession ( string | null $sessionId = null ) : SimpleSAML_Session | ||
$sessionId | string | null | The session we should get, or null to get the current session. |
return | SimpleSAML_Session | The session that is stored in the session handler, or null if the session wasn't found. |