Multiuser voting
-
-
Hi friends, I have created voting system every user can vote not only registered users,so i want to add some security to it,i need some ideas on how to prevent multiuser voting. I dont know exactly may be like checking cookies r session r something else.
The only way you can truely get it to be single user single vote is by making everyone register. Other than that you can do it by IP Address, but then only 1 person at a school can vote for example. There are other ways, but the best way is only registered users can vote. If you allow the unregistered to vote, you need to accept the fact that they can vote multiple times.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
-
Hi friends, I have created voting system every user can vote not only registered users,so i want to add some security to it,i need some ideas on how to prevent multiuser voting. I dont know exactly may be like checking cookies r session r something else.
You're on the right track. Writing a cookie will help, the session is obviously useless, making me wonder if you understand how the cookie could help, or just threw some buzz words out there. You could write a cookie when someone votes, that uses an id to define the post that was voted on. Of course, users can delete the cookie, and you'd end up writing a lot of cookies, which is not ideal. So, once again, there's really no possible way to stop a person from voting, if they have not logged on. There's just no way to magically tell if the same person is voting again, or another person on the same machine, or the same person on another machine, etc.
Christian Graus Driven to the arms of OSX by Vista.
-
You're on the right track. Writing a cookie will help, the session is obviously useless, making me wonder if you understand how the cookie could help, or just threw some buzz words out there. You could write a cookie when someone votes, that uses an id to define the post that was voted on. Of course, users can delete the cookie, and you'd end up writing a lot of cookies, which is not ideal. So, once again, there's really no possible way to stop a person from voting, if they have not logged on. There's just no way to magically tell if the same person is voting again, or another person on the same machine, or the same person on another machine, etc.
Christian Graus Driven to the arms of OSX by Vista.
-
Thanx Christian Graus, It will bw usefull for me if u give me link that can guide me on how to write cookie. :)
-
The only way you can truely get it to be single user single vote is by making everyone register. Other than that you can do it by IP Address, but then only 1 person at a school can vote for example. There are other ways, but the best way is only registered users can vote. If you allow the unregistered to vote, you need to accept the fact that they can vote multiple times.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
-