Results 1 to 6 of 6

Thread: how can i get window login name?

  1. #1
    Join Date
    Aug 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how can i get window login name?

    isnt possible 4 me to display the user window login name at internet explorer??

    thanks...

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You can't.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Define: user window login
    - Mike

  4. #4
    Join Date
    Aug 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mburt
    Define: user window login
    not catch ur point..

    isnt create at login function??..but this not i want to do it.

    i got a server running in linux, n hundred plus computer connectted to. i just want display thier login name(login load OS) when thier access the intranet site. Intranet site was write by using PHP script.

    isnt possible to do that?

  5. #5
    Join Date
    Aug 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    You can't.
    javascript or php also cant??

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by cstan
    [Obtaining OS login name using] javascript
    I am not aware of any properties that expose the login name in any browser.

    or php also cant??
    Server-side PHP can have no knowledge of the state of a remote machine unless that machine sends the information to the server, and browsers do not transmit OS login names.

    It would be possible to use ActiveX to obtain the login name, though I don't know if there are existing objects that provide such a feature. However, even if there were, that would severely limit the browsers a user could use.

    What's wrong with a low-tech solution?

    HTML Code:
    <label>Login name: <input name="login" value=""></label>
    Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •