How to collect the UserID, Client Machine Name, IP address info?

Discussion in 'ASP General' started by Kam, Aug 4, 2005.

  1. Kam

    Kam Guest

    In my asp server page, I would like to collect the USERID, Client Machine
    Name, IP Address information and passing it back to the server for validation
    control.

    How can I achieve it in Jscript?
    Kam, Aug 4, 2005
    #1
    1. Advertising

  2. You only have access to what is offered in the servervariables collection.

    Do yourself a favor and run this script:

    <%
    For Each x In Request.ServerVariables
    Response.Write "<hr>" & x & "<br>" & Request.ServerVariables(x)
    Next
    %>



    "Kam" <> wrote in message
    news:...
    > In my asp server page, I would like to collect the USERID, Client Machine
    > Name, IP Address information and passing it back to the server for
    > validation
    > control.
    >
    > How can I achieve it in Jscript?
    >
    >
    Aaron Bertrand [SQL Server MVP], Aug 4, 2005
    #2
    1. Advertising

  3. Kam

    Kam Guest

    Re: How to collect the UserID, Client Machine Name, IP address inf

    all the variables are empty.
    I think you want me to use LOGON_USER.
    but none of the server variable are non empty

    pls help

    "Aaron Bertrand [SQL Server MVP]" wrote:

    > You only have access to what is offered in the servervariables collection.
    >
    > Do yourself a favor and run this script:
    >
    > <%
    > For Each x In Request.ServerVariables
    > Response.Write "<hr>" & x & "<br>" & Request.ServerVariables(x)
    > Next
    > %>
    >
    >
    >
    > "Kam" <> wrote in message
    > news:...
    > > In my asp server page, I would like to collect the USERID, Client Machine
    > > Name, IP Address information and passing it back to the server for
    > > validation
    > > control.
    > >
    > > How can I achieve it in Jscript?
    > >
    > >

    >
    >
    >
    Kam, Aug 5, 2005
    #3
  4. Re: How to collect the UserID, Client Machine Name, IP address inf

    > all the variables are empty.

    Every single ServerVariable value is empty? I find this very hard to
    believe.

    > I think you want me to use LOGON_USER.


    If you need LOGON_USER, you need to disable anonymous access on the web site
    and require windows authentication.

    A
    Aaron Bertrand [SQL Server MVP], Aug 5, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anil G
    Replies:
    4
    Views:
    22,778
    v_parthi
    Jan 31, 2008
  2. John Black
    Replies:
    18
    Views:
    698
    Daniel T.
    Jun 16, 2004
  3. =?Utf-8?B?QW5kZXJzIENhcmxzc29u?=

    Collect info for AD with createuserwizard

    =?Utf-8?B?QW5kZXJzIENhcmxzc29u?=, May 11, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    390
    =?Utf-8?B?QW5kZXJzIENhcmxzc29u?=
    May 12, 2007
  4. mazdotnet
    Replies:
    0
    Views:
    648
    mazdotnet
    Sep 12, 2007
  5. Ranjana Acharya
    Replies:
    0
    Views:
    865
    Ranjana Acharya
    Apr 25, 2009
Loading...

Share This Page