You are here: Re: How to I prevent a user from running a module twice (i.e. online voting) ? « PHP Programming Language « IT news, forums, messages
Re: How to I prevent a user from running a module twice (i.e. online voting) ?

Posted by Sjoerd on 02/06/06 21:09

> I've got a voting script that's a little too simple. I can vote as as
> many times as I can click on the link in my browser.

Store a cookie at the client side (use setcookie()) and check that to
see if the user has
already voted. Of course, this is fairly easy to bypass: just disable
cookies. You can store an IP on the server, but multiple people can
come from one IP address. If your site is not very busy, you can store
one IP: a user can vote multiple times, but has to wait till any other
user has voted.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация