But a bill passed this week by the county legislature exempts parking lots, campgrounds and golf courses.
Also, there will be no fines for violators.
The resolution was crafted by Legislator William Spencer. The Centerport Democrat is also a doctor.
Spencer - faced with making compromises in his legislation - decided on parks and beaches because a lot of children go there.
The ban takes effect 90 days after the bill is signed by County Executive Steve Bellone and filed with the state.
Get Eyewitness News Delivered