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?
 
Back
Top