Page 1 of 1

Where is tut regarding users only being able to vote once?

Posted: Wed Mar 21, 2012 2:22 pm
by brisk
PHP Tutorial: Simple Rating / Voting System

The end of this tutorial series you say there will be a bit integrating a user system so users an only vote once? This is really crucial and would love to know how to do it as I can't quite figure it out?

Peace

Ed

Re: Where is tut regarding users only being able to vote onc

Posted: Wed Mar 21, 2012 2:45 pm
by jacek
I guess I never got around to it ;)

Re: Where is tut regarding users only being able to vote onc

Posted: Wed Mar 21, 2012 2:52 pm
by brisk
jacek wrote:I guess I never got around to it ;)
Get on it Jacek! You the man ;)

Re: Where is tut regarding users only being able to vote onc

Posted: Wed Mar 21, 2012 5:38 pm
by bowersbros
Its fairly simple.

There are a couple of methods that would work, some temporary. Some permanent (ish)

Temp:

Use cookies

More Perm (but not fully, ie. dynamic IP)

Record their IP along side their vote, and then do a check to see if they have voted (IP is stored)

Another method:

Using HTML 5, store in the browser web database that they've voted.