Re: Identifying a user who previously created a profile
| From: | Matthew Weier O'Phinney | Date: | Thu, 24 Feb 2005 17:38:32 +0000 |
| Subject: | Re: Identifying a user who previously created a profile | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209374@lists.php.net to get a copy of this message | ||
* Jacques <admin@hrfocus.co.za>:
> How can I ensure that a user is prevented from creating a second profile
> after he has registered a second time with different registration details?
>
> I thought of capturing his IP Address and checking this value against my
> users table in my database where I have captured IP Addresses of users who
> have previously registered.
IP address is very unreliable -- most large ISPs and corporations use
proxy servers, so all users appear to come from a single IP address (or
a small group of IP addresses).
You could possible consider setting a cookie on the user -- but that's
not even a foolproof method as the cookie could be manually deleted by
them or they could use a different computer to create a profile.
Basically, this is an unsolvable problem unless you can control the
network (i.e., it's only running on a LAN and you KNOW the IP address
won't change for their machine).
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org