Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Currently logged on user

0 views
Skip to first unread message

Tapiwa

unread,
Apr 22, 2008, 8:51:56 AM4/22/08
to
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.


Cowboy (Gregory A. Beamer)

unread,
Apr 22, 2008, 9:07:38 AM4/22/08
to
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" <tsj...@hotmail.com> wrote in message
news:%23L$3meHpI...@TK2MSFTNGP02.phx.gbl...

Madhur

unread,
Apr 22, 2008, 9:07:11 AM4/22/08
to
I think it is System.Environment.User (Don't remember exactly, but you
should be able to figure out.)

--
Madhur


"Tapiwa" <tsj...@hotmail.com> wrote in message
news:%23L$3meHpI...@TK2MSFTNGP02.phx.gbl...

David Wier

unread,
Apr 22, 2008, 1:43:18 PM4/22/08
to
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" <tsj...@hotmail.com> wrote in message
news:%23L$3meHpI...@TK2MSFTNGP02.phx.gbl...

Milosz Skalecki [MCAD]

unread,
Apr 22, 2008, 3:38:01 PM4/22/08
to
Hi there,

Have a look at
Request.ServerVariables("LOGON_USER")
Request.ServerVariables("AUTH_USER")

HTH
--
Milosz

0 new messages