Sorry there doesn't appear to be a web thread.
Is there a way through javascript that I can get someone's user profile name for who is logged in?
Printable View
Sorry there doesn't appear to be a web thread.
Is there a way through javascript that I can get someone's user profile name for who is logged in?
Here possibly for javascript?
Moved the thread to the HTML and JS forum.
The only situation I know of in which a web application can get the user account name is when it is provided to the server if using Internet Explorer and LDAP authentication.
And if I meet that criteria?
Then it's sent to the web server as an HTTP header:
You can actually get it using JavaScript, but only in IE with ActiveX. See the top reply here.PHP Code:$_SERVER['AUTH_USER']
Also, Mozilla apparently supports this style of authentication, but it needs to be configured manually.