Get the client PC Windows user name and PC Name.
- From: "Jared" <jaredfholgate@xxxxxxxxx>
- Date: 3 Jan 2006 04:44:43 -0800
Hi
I am trying to get the Windows username and PC name from the client PC
in VB or c#.
I am using 'forms' authentication and 'anonymous access' in IIS. Is it
possible to get the client PC's windows username and Computer Name
whilst using this combination?
Access levels to various pages are stored in an SQL Server table
against their Windows Login Name, which is why I use 'forms'
authentication. The site currently runs accross two domains and may go
external in the future, so I don't want to move away from forms
authentication. The data would be useful for me for logging and so that
Intranet Users don't have to type their user name every time they log
on.
Is there some client-side script that can do this? I have tried using
API's, System.Security and User.Identity to no avail. I can only get as
far as the Server IIS logon name.
Any suggestions would be appreciated.
Thanks
Jared
.
- Follow-Ups:
- Re: Get the client PC Windows user name and PC Name.
- From: Paul Henderson
- Re: Get the client PC Windows user name and PC Name.
- From: Peter Rilling
- Re: Get the client PC Windows user name and PC Name.
- Prev by Date: Re: Object reference not set to an instance of an object
- Next by Date: Re: Referencing Master Page from a Web Control
- Previous by thread: VS.net installs sql express as datastore for role/memnerchip management
- Next by thread: Re: Get the client PC Windows user name and PC Name.
- Index(es):
Relevant Pages
|