How to read the username?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Can a php file running on an intranet server read the username people
logged onto the network with?

In Visual Basic I use the api apiGetUserName

Private Declare Function apiGetUserName Lib "advapi32.dll" _
    Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As


Jan Nordgreen

Re: How to read the username? wrote:

Quoted text here. Click to load it

Nope, a browser doesn't "login" to a web server unless you require some
sort of session authentification.  Then you can use php's session
variables to return that information.

Without authentication, all you can get is the remote IP address of the
client browser.

DeeDee, don't press that button!  DeeDee!  NO!  Dee...

Site Timeline