472,142 Members | 1,065 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

Capturing Logged In User

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.
~ <input type="text" name="EmailID" maxlength="10" size="10"
Value="<%=Request.Cookies("NPSC")("UserName")%>"
~

Oct 2 '07 #1
1 2224
"GoGoRichie" <go********@gmail.comwrote in message
news:11**********************@d55g2000hsg.googlegr oups.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.
~ <input type="text" name="EmailID" maxlength="10" size="10"
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
Oct 3 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Geoff Soper | last post: by
5 posts views Thread by ashutosh.bhardwaj1980 | last post: by
1 post views Thread by talk_positive | last post: by
3 posts views Thread by Alex Marsh | last post: by
14 posts views Thread by Brent Burkart | last post: by
5 posts views Thread by sachu | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.