Tutorial :How to get user os name in php?



Question:

If user logged onto machine with his domain name and password, how to get his user name on the server side?


Solution:1

The user's client has to report the username to you. Without things like a browser-plugin, that adds the username to each http request, i can't think of an easy way to do this.


Solution:2

I assume you're talking of windows domain. Google for PHP NTLM


Solution:3

Without any extra software (commonly referred to as single sign-on), providing an authentication token somehow, this is not possible.

Or are you asking how to get the username of the system user running the server application?


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »