Alternatively, you could try using cookies, so the user won't be able to vote again once he closes and opens up his browser.
Off course, you could also store your users ip in a database as a sign that they've already voted. This would keep other users with the same ip from voting, but prevents the user from deleting his cookies and voting again.