$_SERVER['REMOTE_USER'] contained domain\username and I used username to match application database and grant access to application if a user logged from his PC without a need to type username and password.
On Win 2008 and PHP 5.4 (FastCGI) $_SERVER['REMOTE_USER'] is empty.
Igor_Kryltso...
11 Posts
$_SERVER[REMOTE_USER] is empty on IIS7
Nov 28, 2012 03:39 AM|LINK
On Win 2000 PHP 5.1.6 (ISAPI) I was able to get $_SERVER['REMOTE_USER'] this way:
list($domain, $win_uname) = explode("\\", $_SERVER['REMOTE_USER']);
$_SERVER['REMOTE_USER'] contained domain\username and I used username to match application database and grant access to application if a user logged from his PC without a need to type username and password.
On Win 2008 and PHP 5.4 (FastCGI) $_SERVER['REMOTE_USER'] is empty.
I only was able to found: Is HTTP Authentication possible with PHP on IIS FastCGI?
Do you know how to solve this or do I have to add 'Remember' me and push users to login once first?
Thank you
Igor
Igor_Kryltso...
11 Posts
Re: $_SERVER[REMOTE_USER] is empty on IIS7
Nov 29, 2012 02:04 AM|LINK
Anyone?