The users will only use IE, and within IE it can pass their credentials without being prompted to, if they are logged onto the domain controller.
What I want to know is, how do I go about grabbing their username?
I thought this would do the trick: $_SERVER['auth_user'];but no luck.
Just like this Can you get a Windows (AD) username in PHP?
But I don’t know what the code should look like this to capture/grab the user’s username
Any help is appreciated.
There is no way to solve the problem in php directly, but you can obtain the username with the help of javascript:
Just add some AJAX 😉
HTH