Login Control logs user in, but User is not authenticated, but user really is!


I am using aspnetmembershipprovider.  Everything works fine.  I slap a login control on my login page and am able to login and get to my secure folder etc.
 When I try and put some code in the LoggedIn method "User.Identity.IsAuthenticated" = false, yet if I blow through that, I am logged, authenicated etc.  The documentation says that the LoggedIn event is "after the user is authenticated".
 Any Ideas what is up?

Thanks,
TPS

------------------------------------------------------
Note Collaboration for your next confernce call.
http://www.ConferenceCallNotes.com
0
TPS
12/19/2006 10:14:45 PM
📁 asp.net.security
📃 27051 articles.
⭐ 1 followers.

💬 2 Replies
👁️‍🗨️ 1528 Views



I am not sure what you want exactly to achieve.
If you want to change way the user is authenticated, change event:
Login1_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs)
if you setup:
e.Authenticated = true
that means that authentication is ok and that user is authenticated.

Regards,
Dejan Vesić

MCAD for .Net technologies | http://www.vesic.org/english/ | Blog: http://www.vesic.org/english/blog/
0
Dejan
12/19/2006 11:30:26 PM

I figured it out.  The cookie has not been inserted in the browser yet because a round trip from the server to the user back to the server has not happened. 
 Thanks for your reply.

Thanks,
TPS

------------------------------------------------------
Note Collaboration for your next confernce call.
http://www.ConferenceCallNotes.com
0
TPS
12/20/2006 3:17:15 PM
Reply: