Results 1 to 6 of 6

Thread: Web/PC username

  1. #1
    Addicted Member
    Join Date
    Apr 12
    Posts
    152

    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?

  2. #2
    .Net Member dday9's Avatar
    Join Date
    Mar 11
    Location
    South Louisiana
    Posts
    2,334

    Re: Web/PC username

    Here possibly for javascript?
    Vb.Net Contributions:-Here-
    Game Contributions:-Here- New - 2d map creator
    XNA in Vb.Net Tutorials:-Here-

    Links:
    LegalShield | AUP

  3. #3
    Super Moderator Joacim Andersson's Avatar
    Join Date
    Jan 99
    Location
    Sweden
    Posts
    13,533

    Re: Web/PC username

    Moved the thread to the HTML and JS forum.
    Joacim Andersson
    If anyone's answer has helped you, please show your appreciation by rating that answer.
    I'd rather run ScriptBrix...
    Joacim's view on stuff.

    MVP

  4. #4
    Moderator
    Join Date
    Jan 05
    Location
    Sydney
    Posts
    13,615

    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.

  5. #5
    Addicted Member
    Join Date
    Apr 12
    Posts
    152

    Re: Web/PC username

    And if I meet that criteria?

  6. #6
    Moderator
    Join Date
    Jan 05
    Location
    Sydney
    Posts
    13,615

    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
  •