Partner and Community Forums
$_SERVER[REMOTE_USER] is empty on IIS7
Last post Nov 28, 2012 10:04 PM by Igor_Kryltsov
Nov 27, 2012 11:39 PM|Igor_Kryltsov|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?
Nov 28, 2012 10:04 PM|Igor_Kryltsov|LINK