How can I get the logon name?

Discussion in 'ASP General' started by Mystery, Oct 21, 2003.

  1. Mystery

    Mystery Guest

    I'm using Basic Authentication for my web site - not great I know but I'm
    having to support devices like the Nokia 9210i which dosn't seem to like the
    digest information for windows domain servers.

    The question is that I would like to be able to somehow capture that logon
    username/id so that I can use it within the web site to track changes made
    by the user. I've thought about switching off authentication all together
    and writing my own logon asp page (query to an SQL database or something and
    then store the result in a session variable), but if I can somehow capture
    and access the basic authentication information, it would save me some work.

    I'm using good'ol ASP and not asp.net.

    Thx.
    Mystery, Oct 21, 2003
    #1
    1. Advertising

  2. Mystery

    Bob Barrows Guest

    Mystery wrote:
    > I'm using Basic Authentication for my web site - not great I know but
    > I'm having to support devices like the Nokia 9210i which dosn't seem
    > to like the digest information for windows domain servers.
    >
    > The question is that I would like to be able to somehow capture that
    > logon username/id so that I can use it within the web site to track
    > changes made by the user. I've thought about switching off
    > authentication all together and writing my own logon asp page (query
    > to an SQL database or something and then store the result in a
    > session variable), but if I can somehow capture and access the basic
    > authentication information, it would save me some work.
    >

    With Basic Authentication, Request.ServerVariables("AUTH_USER") should
    contain the name of the authenticated user.

    HTH,
    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.
    Bob Barrows, Oct 21, 2003
    #2
    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. ding feng
    Replies:
    2
    Views:
    2,783
    ding feng
    Jun 25, 2003
  2. armandotop
    Replies:
    2
    Views:
    380
    Peter Jansson
    Apr 13, 2005
  3. Molly_K
    Replies:
    0
    Views:
    495
    Molly_K
    Aug 10, 2006
  4. Kjell Kristiansson
    Replies:
    0
    Views:
    277
    Kjell Kristiansson
    Nov 30, 2005
  5. Replies:
    6
    Views:
    149
Loading...

Share This Page