Some beaches—particularly those within the jurisdiction of the State Parks system—close down at sunset. Others close at 2:00 AM and re-open at 6:00 AM, and some never really close. Unless you're a registered guest of an official campground, you are never allowed to stay overnight at any beach.