Results 1 to 6 of 6

Thread: Web/PC username

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2012
    Posts
    440

    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
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,372

    Re: Web/PC username

    Here possibly for javascript?
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Web/PC username

    Moved the thread to the HTML and JS forum.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2012
    Posts
    440

    Re: Web/PC username

    And if I meet that criteria?

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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
  •  



Click Here to Expand Forum to Full Width