The Virginia Senate killed a bill Thursday that would have allowed voters to register by political party.

State Sen. William Stanley ( R-Franklin)’s party registration bill failed in the Senate Thursday. (Steve Helber/AP)

The bill died in a 16-24 floor vote.

The bill was meant to give political parties more control over their primaries, which currently are open to all party voters. The bill would not have required parties to close their primaries, but it would have allowed them to do so.