setPurchaseLog supports both id and sessionid