Determining user name ?

  • Thread starter Thread starter Steven Caliendo
  • Start date Start date
S

Steven Caliendo

Hi,

In my web app I need to know who is currently logged on to the PC. Can
someone tell me how to do this ?

Thanks,

Steve
 
¤ Hi,
¤
¤ In my web app I need to know who is currently logged on to the PC. Can
¤ someone tell me how to do this ?
¤

If you're using integrated NT security try User.Identity.Name.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Hi,

Environment.UserName

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Try this:

System.Security.Principal.WindowsIdentity.GetCurrent.Name

Vladimir [VB.NET Team]
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| Reply-To: "Steven Caliendo" <[email protected]>
| From: "Steven Caliendo" <[email protected]>
| Subject: Determining user name ?
| Date: Mon, 15 Sep 2003 15:23:18 -0400
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <#K#[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 64.80.232.82
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
..phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:137115
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hi,
|
| In my web app I need to know who is currently logged on to the PC. Can
| someone tell me how to do this ?
|
| Thanks,
|
| Steve
|
|
|
 
Environment.UserName

Sorry, I didn't read properly, you said web app, I have no idea if this
works in that respect. Oh well, sorry, you have 2 other great answers
though :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Back
Top