Re: Get the current logged in user name

From: Pat (naijacoder_at_hotmail.com)
Date: 08/29/05

  • Next message: Pat: "Re: User.Identity.IsAuthenticated problem"
    Date: Mon, 29 Aug 2005 13:54:49 +1000
    
    

    Thas true jim that will still do the trick in ASP.NET

    "Jim in Arizona" <tiltowait@hotmail.com> wrote in message
    news:e0Rzte7lFHA.1412@TK2MSFTNGP09.phx.gbl...
    > "Imran Aziz" <imran@tb2.net> wrote in message
    > news:u18ZSH2lFHA.320@TK2MSFTNGP09.phx.gbl...
    > > Hello All,
    > > I am new to .net. I want to use windows authentication to authenticate
    > > against the current logged in user on the client machine. I believe by
    > > using windows authentication method, the IIS will send me details of the
    > > current logged in user at the client machine if integrated windows
    > > authentication is enabled at IIS. Can anyone please guide me how I can
    get
    > > the name of the current logged in client that is making a request to my
    > > ASP.net application ?
    > >
    > > I am trying to look into System.Web.Security class for this but have not
    > > been able to find a piece of code or guidance of how to do it.
    > >
    > > Imran.
    >
    > I used this in my ASP pages and still use it in ASP.NET although there's
    > obviously many other was to achieve the same/similar result.
    >
    > Dim strWho as String
    > strWho = Request.ServerVariables("AUTH_USER")
    > or
    > strWho = Request.ServerVariables("LOGON_USER")
    >
    > HTH,
    > Jim
    >
    >


  • Next message: Pat: "Re: User.Identity.IsAuthenticated problem"

    Relevant Pages

    • Re: IIS Stops serving randomly
      ... What happens when you browse the website from a client machine, ... Please disable "Friendly HTTP ... Kristofer Gafvert - IIS MVP ...
      (microsoft.public.inetserver.iis)
    • Re: IIS Stops serving randomly
      ... What happens when you browse the website from a client machine, ... Please disable "Friendly HTTP ... Kristofer Gafvert - IIS MVP ...
      (microsoft.public.inetserver.iis.security)
    • Re: VS2005 application in a computer where Active Directory is ins
      ... Installing Active Directory is a big change and needs a lot of planning and preparation. ... Usually, a web application runs on a server, NOT on a clients machine, the client would simply browse to the web server. ... You appear to be saying you're running an AD based LAN and that you have installed a web app to a client machine running IIS and this client is joined to your AD domain? ...
      (microsoft.public.vsnet.general)
    • Re: LOGON_USER & Anonymous Access
      ... without any luck. ... I'm using IIS 6.0 on Windows Server 2003 ... your client machine is actually logged on to the domain, ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Opening Documents on Website Within Browser
      ... It's just an Explorer setting. ... From Explorer on the client machine: ... > I have several web sites setup and running on IIS 5.0 and IIS 4.0. ...
      (microsoft.public.inetserver.iis.security)