Results 1 to 4 of 4

Thread: ASP ... reading username

  1. #1
    Senior Member
    Join Date
    Jan 2008
    Posts
    636
    Thanks
    79
    Thanked 23 Times in 20 Posts
    Rep Power
    222
    Reputation
    171

    Default ASP ... reading username

    I've created a website (with anonymous access) so wondering if it's possible to use a command to obtain a user name.

    The user puts some details into a form (then submits) so I want to create a log of these details with the username recorded automatically. I can get the IP address, but would also like the user's windows logon name.

    Basically, I'd like it to work like it does in Excel where you can use the Environ("UserName") command.

    Is there an ASP equivalent? If not ASP, perhaps Javascript?



Look Here ->
  • #2
    Junior Member
    Join Date
    May 2008
    Age
    50
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Reputation
    10

    Default

    Are your users part of a Domain or just from the WEB...

  • #3
    Senior Member
    Join Date
    Jan 2008
    Posts
    636
    Thanks
    79
    Thanked 23 Times in 20 Posts
    Rep Power
    222
    Reputation
    171

    Default

    No domain ... just the web.

    After some reading - if I can't get the user's logon name, I may just use session cookies which seems like a good option.

  • #4
    Junior Member
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Reputation
    10

    Default

    HI,

    if you need get the ip address of the users log in means you need to sniff the the port and destination by creating a hash table.... in ASP.Net this can be achieved by using sniffer tool..... you can also refer code snippet.com for this .......

    under the title network sniffer and connection analyser .....

    because i did this as my career project ...this will create a log stat of the IP address ......

  • 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
    •