Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Currently logged on user

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tapiwa - 22 Apr 2008 13:51 GMT
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 - 22 Apr 2008 14:07 GMT
I think it is System.Environment.User (Don't remember exactly, but you
should be able to figure out.)

--
Madhur
> Hello,
>
[quoted text clipped - 4 lines]
>
> Thanks in advance.
Cowboy (Gregory A. Beamer) - 22 Apr 2008 14:07 GMT
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.

Signature

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!

*************************************************
> Hello,
>
[quoted text clipped - 4 lines]
>
> Thanks in advance.
David Wier - 22 Apr 2008 18:43 GMT
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

> Hello,
>
[quoted text clipped - 4 lines]
>
> Thanks in advance.
Milosz Skalecki [MCAD] - 22 Apr 2008 20:38 GMT
Hi there,

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

HTH
Signature

Milosz

> Hello,
>
[quoted text clipped - 4 lines]
>
> Thanks in advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.