This function returns the principal (user) of the specified session, or NULL if the handle is invalid or any other error occurred.