breault
Posts: 1
|
Posted: 03/24/2009, 1:50 PM |
|
Hi All,
I want to only display users that belong to the same location. I have a field in the Users table named LocationID. There also exists in the Users table a UserID and various other fields. How can I best do this so that when going to a page the user will only see users in thier location. Here is the gotcha...users do not have to login. This is by design of the client I am working for.
Thanks in advance,
B
|
|
|
JimmyCrackedCorn
Posts: 583
|
Posted: 03/24/2009, 2:33 PM |
|
hmm, if you do not have login and users do not have to identify themselves, it would seem to be an impossible task! you could try using cookies to ID them but they have control over their cookies. you could try using their IP address to ID them but depending on their net connection that could change frequently. you might want to re-think whether or not login should be used.
_________________
Walter Kempees...you are dearly missed. |
|
|
melvyn
Posts: 333
|
Posted: 03/24/2009, 3:08 PM |
|
In PHP Classes there are some PHP libraries that can help you using IP location. It's not precise. It's possible to get an aproximate calculation regarding where is that IP located.
You're working in ASP, however, so must be something valid. Try searching in Google Web Toolkit....
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
|
|
|