I was considering how one would implement some voting mechanism, using AJAX, that limits each user to one vote. On the page you’re fetching data from, would you just check the session information, or would you pass the user/pass combo through an AJAX post request?
Any special considerations that need to be taken when the aforementioned is done in django?
AJAX requests still honor cookies and will come from the same IP address, so do it server-side, and have your server only accept one vote per IP. If another vote is posted, make the server simply return a message saying you can’t vote more than once.