Capturing Logged In User

Capturing Logged In User

am 03.10.2007 00:19:39 von GoGoRichie

Does anyone know away i can pull the logged in user name from a
computer for a web form?


this is what i did to pull from the cookie when user log into my site
but now i want to get request from non site users but capture non
logged in users ids too.
~ Value="<%=Request.Cookies("NPSC")("UserName")%>"
~

Re: Capturing Logged In User

am 03.10.2007 18:28:11 von Anthony Jones

"GoGoRichie" wrote in message
news:1191363579.208522.245100@d55g2000hsg.googlegroups.com.. .
> Does anyone know away i can pull the logged in user name from a
> computer for a web form?
>
>
> this is what i did to pull from the cookie when user log into my site
> but now i want to get request from non site users but capture non
> logged in users ids too.
> ~ > Value="<%=Request.Cookies("NPSC")("UserName")%>"
> ~
>

How does a non-logged in user have an ID? Unless your talking about the
user name they have used to loggon to their computer. If that is so then
you can only aquire that if

1) their browser is set to automatically send their current credentials when
an authentication is required to your web server.
2) your IIS server can authenticate their credentials.

You can then use the AUTH_USER server variable to access the domain and user
name of the user.

Otherwise it can't be done.

--
Anthony Jones - MVP ASP/ASP.NET