Forum Moderators: open

Message Too Old, No Replies

get username from client in ASP.net

         

bilzen

9:14 am on Jun 24, 2005 (gmt 0)

10+ Year Member



Hello,

Hope someone can help me. I'm looking for a way to get the username from the client (visitor) automaticly?

Posted this question in a lot of forums, but did'nt find a good answer yet, hope to finf it here..

tnx in advance.

greetz

aspdaddy

9:20 am on Jun 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The windows username (not available if you are allowing anonomous access) is (in ASP)

Request.ServerVariables("LOGON_USER")

And welcome to Webmasterworld :)

bilzen

9:35 am on Jun 24, 2005 (gmt 0)

10+ Year Member



I know, but if I disable anonymous then the visitors has to type a username and password before the page opens. And I would like to get the username without the visitor doing something.

in detail:

A txt on my page must be filled with the username from the PC thats opening the page.

greetz

PS: nice to be at webmasterworld :-)

aspdaddy

11:52 am on Jun 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I sorry, you lost me :)

Are you allowing anonomous access to the webpage or using windows authentication?

Windows Integrated Authentication is based on users in the domains AD or local SAM, so if they are on a different domain it will challenge them, in a single domain or domain trust realtionship it migrates.. I think. I'm no windows expert but that how it seems to work