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.Current.User.Identity.Name()

Thanks in advance.
Tapiwa [ Di, 22 April 2008 14:51 ] [ ID #1947377 ]

Re: Currently logged on user

There is a classic ASP group: mcirosoft.public.inetserver.asp.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
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Tapiwa" <tsj1998 [at] hotmail.com> wrote in message
news:%23L$3meHpIHA.1236 [at] TK2MSFTNGP02.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.Current.User.Identity.Name()
>
> Thanks in advance.
>
NoSpamMgbworld [ Di, 22 April 2008 15:07 ] [ ID #1947380 ]

Re: Currently logged on user

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

--
Madhur
"Tapiwa" <tsj1998 [at] hotmail.com> wrote in message
news:%23L$3meHpIHA.1236 [at] TK2MSFTNGP02.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.Current.User.Identity.Name()
>
> Thanks in advance.
>
Madhur [ Di, 22 April 2008 15:07 ] [ ID #1947381 ]

Re: Currently logged on user

User.Identity.Name works the same in 2.0


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


"Tapiwa" <tsj1998 [at] hotmail.com> wrote in message
news:%23L$3meHpIHA.1236 [at] TK2MSFTNGP02.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.Current.User.Identity.Name()
>
> Thanks in advance.
>
David Wier [ Di, 22 April 2008 19:43 ] [ ID #1947423 ]

RE: Currently logged on user

Hi there,

Have a look at
Request.ServerVariables("LOGON_USER")
Request.ServerVariables("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.Current.User.Identity.Name()
>
> Thanks in advance.
>
>
>
mily242 [ Di, 22 April 2008 21:38 ] [ ID #1947441 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Currently logged on user

Vorheriges Thema: Using HTTP Module to Change Response
Nächstes Thema: Multiple config files