try doing a search for this topic as it has been discussed at length several times...
That said, usually you need to have lived in the state for at least 1 year not for educational purposes, and you have to prove your intent to domicile in the state by having a permanent address, drivers license, pay taxes, vote, car registration in that state. Each state is a little different, and I would suggest calling the schools you intend to apply to and see what they say.