Getting Domain\Username

R

Rob Nicholson

Can somebody remind me how you get the domain\username of the client who's
accessing an intranet site? I know you have to turn on NT authentication on
IIS.

Also, does this work with other browsers such as Firefox? It's a
hypothetical question as the app we're writing is internal and the companies
standard is IE.

I was about to stupidly ask if the same technique works with another web
server but then we couldn't run ASP.NET anyway :) Doh!

Cheers, Rob.
 
P

Patrick Olurotimi Ige

Rob,
Make sure u turn on Integrated Windows Auth and turn off Anonymous
acess.
And call - User.Identity.name

Hope this helps
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top