Re: Unique User Hashes

From: Date: Wed, 18 Feb 2009 03:56:15 +0000
Subject: Re: Unique User Hashes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-288513@lists.php.net to get a copy of this message
Ian wrote:
Hi, I am busy building an application that requires one time voting and to get around the user deleting a cookie that I set im keeping a hash on my side which I then try match before allowing anything.
I assume this is backed by a db of some sort. $query = "update user set has_voted=NOW() where userid='x'"; so you can also see when the user voted. Maybe record the ip etc as a record to back up your assertion they have voted but as you say, ip is not a very reliable indicator. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#288513) next »