Assigns a new session for this.
Note this function is synchronous and ignores errors.
the user object to alter.
a session (e.g. gnome)