how to determine logged on user?

  • Thread starter Thread starter djc
  • Start date Start date
D

djc

I have MSDE2000 using integrated authentication. How can I determine the
username of the logged on user from my asp.net app?
 
Hi,

Aspnet application is running on server under local windows aspnet account
by default (only on w2k3 is different account used).
 
¤ I have MSDE2000 using integrated authentication. How can I determine the
¤ username of the logged on user from my asp.net app?
¤

Several methods. Here is one:

System.Security.Principal.WindowsIdentity.GetCurrent.Name


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
In SQL, select suser_sname()


Miha Markic said:
Hi,

Aspnet application is running on server under local windows aspnet account
by default (only on w2k3 is different account used).

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com

djc said:
I have MSDE2000 using integrated authentication. How can I determine the
username of the logged on user from my asp.net app?
 
thanks

In SQL, select suser_sname()


Miha Markic said:
Hi,

Aspnet application is running on server under local windows aspnet account
by default (only on w2k3 is different account used).

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com

djc said:
I have MSDE2000 using integrated authentication. How can I determine the
username of the logged on user from my asp.net app?
 

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

Back
Top