Assigns a type to the session for this.
Note this function is synchronous and ignores errors.
the user object to alter.
a type of session (e.g. "wayland" or "x11")