Some 33 retailers in the county will be affected, including Rite Aid, Price Chopper, Hannaford, ShopRite, Walgreens and Walmart.

A similar ban was proposed in 2012 and approved by the county Legislature in 2014, but McCoy vetoed the measure because it lacked an enforcement mechanism. This time around, the ban allows the county health commissioner to impose a civil penalty of up to $500 a day for any store in violation of the law.

San Francisco was the first municipality to ban tobacco products from pharmacies in 2008.

Since then, similar ordinances passed in a slew of other places in California and Massachusetts. In New York, Rockland County and New York City are the only municipalities with the bans in place.