This depends on the state park itself. By checking their website or calling the park ranger of that area, they will be able to tell you how long you can stay. Usually, you can camp for 3 days in a single site or throughout the park, but if you plan on staying longer then you'll need to acquire the proper permits. This is an important thing to look into, so be certain to do your research and talk to the appropriate people.