Create unique Poll/vote/survey in php -


Unique survey / vote / survey I mean that users can vote only once. How do I do that? Track their IP? log in? Besides the login, what else? (Entrance is my last option, so next to the entry, can I do anything?)

< P> To limit the number of votes per person, you have to track the person.

Now there are several ways to do this, and I list them with their professionals and opposition to decide which method you regard best.

  1. Login: This will give you ultimate control. But it is a bit cumbersome for the user. and your previous priority
  2. IP: How do you handle people behind the web proxy? How about people with dialup connections and / or dynamic IPs?
  3. Cookies: This is good for short term elections, so that you can set the end of the pole to the time the poll is finished. But, one potential flaw is how the user will remove cookies (opposite with A) cookies!
  4. openId : Although this method is not very different from 'login' method, it saves the user from registering (which is actually the part that is most about login ). Edit: The problem with this situation is that you need to resolve the user's identity I think OpenID It does pretty darn well.

    Cheers,

    jrh


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -