|
-
Jul 9th, 2012, 10:56 PM
#1
Thread Starter
Hyperactive Member
Web/PC username
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?
-
Jul 9th, 2012, 11:03 PM
#2
Re: Web/PC username
Here possibly for javascript?
-
Jul 9th, 2012, 11:26 PM
#3
Re: Web/PC username
Moved the thread to the HTML and JS forum.
-
Jul 9th, 2012, 11:30 PM
#4
Re: Web/PC username
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.
-
Jul 10th, 2012, 03:59 AM
#5
Thread Starter
Hyperactive Member
Re: Web/PC username
And if I meet that criteria?
-
Jul 10th, 2012, 08:43 PM
#6
Re: Web/PC username
Then it's sent to the web server as an HTTP header:
PHP Code:
$_SERVER['AUTH_USER']
You can actually get it using JavaScript, but only in IE with ActiveX. See the top reply here.
Also, Mozilla apparently supports this style of authentication, but it needs to be configured manually.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|