It depends on the situation. You can maintain residency, vote in, keep current registration, and buy firearms in your home state if you are temporally in another state for school, military, or work assignment. This assumes that your residence is somewhere like your parents' house.