Re: How to get current logged in Windows username?
- From: John Dalberg <john_dd@xxxxxxxxxxx>
- Date: Sun, 17 Apr 2005 13:31:35 -0700
On Wed, 6 Apr 2005 16:14:41 -0700, Eltoon Wang wrote:
> Hi John,
>
> If you use Windows authentication and deny anonymous
> access, you can use HttpContext.Current.User.Identity.Name
> to get domain log on user name.
How can you do something similar with Form authentication?
John Dalberg
>>-----Original Message-----
>>
>>
>>I want to automate the process of logging into an
> intranet. I want to pull
>>out the username of the Windows user logged into the
> machine running the
>>browser and use the username in my app. How can I get the
> logged in
>>username?
>>
>>Do I have to disable the anonymous access in IIS? I
> rather not because the
>>site is running under a certain domain user which has
> access to certain
>>folder and network shares and the site needs thsi access
> for reading and
>>writing files.
>>
>>--
>>John Dalberg
>>.
>>
--
John Dalberg
.
- Follow-Ups:
- Re: How to get current logged in Windows username?
- From: Patrick Olurotimi Ige
- Re: How to get current logged in Windows username?
- References:
- How to get current logged in Windows username?
- From: John Dalberg
- How to get current logged in Windows username?
- From: Eltoon Wang
- How to get current logged in Windows username?
- Prev by Date: Re: System IO used with ASP.NET
- Next by Date: Re: Linking to a url from an image in a datagrid
- Previous by thread: Re: How to get current logged in Windows username?
- Next by thread: Re: How to get current logged in Windows username?
- Index(es):
Relevant Pages
|