Currently logged on user

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tapiwa

    Currently logged on user

    Hello,

    I am currently maintaing an old ASP 2.0 application and would like to know
    the command to retain the currently logged on user (i.e. WINDOWS login). The
    equivalent command in ASP.NET would be User_login =
    HttpContext.Cur rent.User.Ident ity.Name()

    Thanks in advance.


  • Cowboy \(Gregory A. Beamer\)

    #2
    Re: Currently logged on user

    There is a classic ASP group: mcirosoft.publi c.inetserver.as p.general.

    The logged in user in ASP is done off the Request object and is in the
    server variables. I do not have the exact syntax to share.

    --
    Gregory A. Beamer
    MVP, MCP: +I, SE, SD, DBA

    Subscribe to my blog


    or just read it:


    *************** *************** *************** ****
    | Think outside the box!
    |
    *************** *************** *************** ****
    "Tapiwa" <tsj1998@hotmai l.comwrote in message
    news:%23L$3meHp IHA.1236@TK2MSF TNGP02.phx.gbl. ..
    Hello,
    >
    I am currently maintaing an old ASP 2.0 application and would like to know
    the command to retain the currently logged on user (i.e. WINDOWS login).
    The equivalent command in ASP.NET would be User_login =
    HttpContext.Cur rent.User.Ident ity.Name()
    >
    Thanks in advance.
    >

    Comment

    • Madhur

      #3
      Re: Currently logged on user

      I think it is System.Environm ent.User (Don't remember exactly, but you
      should be able to figure out.)

      --
      Madhur
      "Tapiwa" <tsj1998@hotmai l.comwrote in message
      news:%23L$3meHp IHA.1236@TK2MSF TNGP02.phx.gbl. ..
      Hello,
      >
      I am currently maintaing an old ASP 2.0 application and would like to know
      the command to retain the currently logged on user (i.e. WINDOWS login).
      The equivalent command in ASP.NET would be User_login =
      HttpContext.Cur rent.User.Ident ity.Name()
      >
      Thanks in advance.
      >

      Comment

      • David Wier

        #4
        Re: Currently logged on user

        User.Identity.N ame works the same in 2.0


        David Wier

        http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
        bloated markup


        "Tapiwa" <tsj1998@hotmai l.comwrote in message
        news:%23L$3meHp IHA.1236@TK2MSF TNGP02.phx.gbl. ..
        Hello,
        >
        I am currently maintaing an old ASP 2.0 application and would like to know
        the command to retain the currently logged on user (i.e. WINDOWS login).
        The equivalent command in ASP.NET would be User_login =
        HttpContext.Cur rent.User.Ident ity.Name()
        >
        Thanks in advance.
        >

        Comment

        • =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=

          #5
          RE: Currently logged on user

          Hi there,

          Have a look at
          Request.ServerV ariables("LOGON _USER")
          Request.ServerV ariables("AUTH_ USER")

          HTH
          --
          Milosz


          "Tapiwa" wrote:
          Hello,
          >
          I am currently maintaing an old ASP 2.0 application and would like to know
          the command to retain the currently logged on user (i.e. WINDOWS login). The
          equivalent command in ASP.NET would be User_login =
          HttpContext.Cur rent.User.Ident ity.Name()
          >
          Thanks in advance.
          >
          >
          >

          Comment

          Working...