I'd say: don't do it. Because you could get reaal security problems when you try something like this.
Greets,
Clemens ps: sorry for the brief comment, gtg.
I think I should inspire myself more on the sso instead of the cookieuser: http://ez.no/community/forum/developer/setting_user_role_based_on_ip_address
The $_SERVER['REMOTE_HOST'] is going to contain the ip of the proxy, isn't it ?
That was the variable I intended to test for my purpose, and if one of the admin put the IP address of a public proxy, then that's not my problem.
In other word, if ou put the IP address of the gateway of a company and say that's the user "partner", every pc connected via that gateway is going to been see as a partner, and that's what I want.