Re: Get the current logged in user name
From: Pat (naijacoder_at_hotmail.com)
Date: 08/29/05
- Previous message: Pat: "Re: Get the current logged in user name"
- In reply to: Jim in Arizona: "Re: Get the current logged in user name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
>
>
- Previous message: Pat: "Re: Get the current logged in user name"
- In reply to: Jim in Arizona: "Re: Get the current logged in user name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|