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

Post here is you are having problems with any of the tutorials.
Post Reply
brisk
Posts: 26
Joined: Mon Nov 21, 2011 1:22 am

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

Post 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
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

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

Post by jacek »

I guess I never got around to it ;)
Image
brisk
Posts: 26
Joined: Mon Nov 21, 2011 1:22 am

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

Post by brisk »

jacek wrote:I guess I never got around to it ;)
Get on it Jacek! You the man ;)
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

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

Post 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.
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
Post Reply