Which PHP version are you using? If it is 5 then long array names are turned off by default and you should use the short superglobals: [tt]$_SERVER['REMOTE_USER'][/tt].
I don't see $_SERVER['REMOTE_USER'] listed in the PHP online manual.
A user-supplied comment on that page says $_SERVER['REMOTE_USER'] is the same thing as $_SERVER['PHP_AUTH USER']. The "gotcha" is that PHP has to be running as a web server module (of ISAPI filter with IIS) for this to be available. Running PHP as a standalone CGI won't work.
litton1, i was trying to use $HTTP_SERVER_VARS['REMOTE_USER'] to get the loginID. EG if the user logged in as USER1 in windows, then $HTTP_SERVER_VARS['REMOTE_USER'] should capture USER1.
but perhaps i have used the wrong method. if $HTTP_SERVER_VARS['REMOTE_USER'] is unable to capture the loginID, may i ask what is the correct method?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.