Hi,
I checked the identity like you said,
well... looks like User.Identity.Name even after authentication is empty. This is a bit confusing because, in the login control's authenticate event, i am checking for the validity of the user, here is the line of code:
protected void login_Authenticate(object sender, AuthenticateEventArgs e)
{
if (Membership.ValidateUser(login.UserName, login.Password))
{
e.Authenticated = true;
FormsAuthentication.RedirectFromLoginPage(login.UserName, false);
}
else
{
e.Authenticated = false;
}
}
It does validate the user because it redirects me to the correct url and morover if i type in the wrong username or password, i get login error which looks good. But once the user is authenticated and goes to the default page the Identity is empty and the User.Identity.IsAuthentcated is showing as false.
Anything missng in this?