People consume cranberry juice believing it would keep urinary tract infections at bay, though the exact mechanism has not been well understood.