Distinguish Unique Users
Posted: Tue Jul 08, 2008 6:17 pm
Hi
In our app at the moment we have a requirement to rate certain things from 1 to 5.
We dont want a user rating a particular object more than once.
At the moment we store all the ip addresses along with the ratings for the particular object so we can do a like query on this field based on ip address of user.
The problem is with $ip = $_SERVER['REMOTE_ADDR'];
this returns the network ip address.
If i am at home and i rate an item, my friend cannot rate the same item because $_SERVER['REMOTE_ADDR']; returns the same ip address.
Any ideas how we could distinguish between users that are in a network or behind a router?
Any help is greatly appreciated
Thanks
Damien
In our app at the moment we have a requirement to rate certain things from 1 to 5.
We dont want a user rating a particular object more than once.
At the moment we store all the ip addresses along with the ratings for the particular object so we can do a like query on this field based on ip address of user.
The problem is with $ip = $_SERVER['REMOTE_ADDR'];
this returns the network ip address.
If i am at home and i rate an item, my friend cannot rate the same item because $_SERVER['REMOTE_ADDR']; returns the same ip address.
Any ideas how we could distinguish between users that are in a network or behind a router?
Any help is greatly appreciated
Thanks
Damien