Hi,
I was wondering if it is possible to get the username entered from a windows login. What I mean with windows login is an automatic pop-up login from the browser, when someone tries to access a certain folder.
What I would like to do is, to pass(or get) the username entered on this login window onto a php page, so I can manipulate the navigation depending on who has logged in.
I hope you guys can understand what I'm trying to do...
passing username entered on Login Windows onto php page
Moderator: General Moderators
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
I searched and found $_SERVER['PHP_AUTH_USER'], but i'm not so sure about it. Because it says that it'll provide you with username when you use http login authentification...
I found $_ENV variable though, it can retreive the shell (OS) environment vars, I think this is more like it.
But I don't know to use it
I found $_ENV variable though, it can retreive the shell (OS) environment vars, I think this is more like it.
But I don't know to use it
Yes, but if not configured otherwise the Internet Explorer trys a ntml authentication with the current user's credentials - without confirmation of the userchakhar86 wrote:I searched and found $_SERVER['PHP_AUTH_USER'], but i'm not so sure about it. Because it says that it'll provide you with username when you use http login authentification...
There's no other way the webserver can automagically identifiy the windows logon user.
The enviroment variables of the machine php is running on - the server, not the client.chakhar86 wrote:I found $_ENV variable though, it can retreive the shell (OS) environment vars, I think this is more like it.