RE: [PHP] 3 mins of your time please...logic problem
| From: | Dan Joseph | Date: | Wed, 24 Sep 2003 18:13:54 +0000 |
| Subject: | RE: [PHP] 3 mins of your time please...logic problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163791@lists.php.net to get a copy of this message | ||
Hi,
Another way to restrict them to one vote is to set a cookie. Although not
completely full-proof, its a method I've seen a lot of them use.
-Dan Joseph
> -----Original Message-----
> From: CPT John W. Holmes [mailto:holmes072000@charter.net]
> Sent: Wednesday, September 24, 2003 1:54 PM
> To: Ryan A; php-general@lists.php.net
> Subject: Re: [PHP] 3 mins of your time please...logic problem
>
>
> From: "Ryan A" <ryan@coinpass.com>
>
> > Basically trying to limit the "vote" to just 1 per person, first am
> checking
> > if the the person with username has voted, if that comes back as false
> then
> > am checking his ip (because i dont know if the person changed his
> username
> > and is trying to vote again) now its allowing me to vote twice
> and on the
> > third time its restricting me.
>
> Just get rid of the check for IP address. All you're going to do
> is restrict
> a bunch of people that actually haven't voted just because they have the
> same IP address as someone else. Some ISPs have it so that all
> requests look
> like they are coming from the same IP address while it's actually
> different
> people.
>
> If your "poll" is really so important that you need to limit people from
> voting twice, then make them log in and only allow one vote per username.
>
> ---John Holmes...
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>