I am a resident of Connecticut and have a new job in Virginia. Where do I pay state taxes?

I was a student in DC until July and a resident of Connecticut. Since September, I have a job in Virginia and moved to another apartment in DC, but am still considered a resident of Connecticut. So where do I file for tax refunds or payment?