State lawmakers Monday considered a legislation that would limit the cost of prescriptions for certain drugs.