By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,687 Members | 2,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,687 IT Pros & Developers. It's quick & easy.

Determining user name ?

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Mon, 15 Sep 2003 15:23:18 -0400, "Steven Caliendo" <sc*******@epion.com> wrote:

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 ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #2

P: n/a
Nak
Hi,

Environment.UserName

Nick.

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

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #3

P: n/a
Try this:

System.Security.Principal.WindowsIdentity.GetCurre nt.Name

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

--------------------
| Reply-To: "Steven Caliendo" <sc*******@epion.com>
| From: "Steven Caliendo" <sc*******@epion.com>
| 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*************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 64.80.232.82
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.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
|
|
|
Nov 20 '05 #4

P: n/a
Nak
> 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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.