Hello,
1)
Since according to MSDN user will be created and logged in at the end of the
CreateUserStep step, then at the time
CreateUserWizard1_CreatedUser event handler is called,
User.Identity.Name should already be able to display the name of an authenticated user, but it doesn't. Why is that?
- protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
-
{
-
Label1.Text = "User.Identity.Name is " + User.Identity.Name;
-
}
2)
If
FormsAuthenticationModule detects forms authentication ticket in the request, it automatically creates security context by initializing
HttpContext.Current.User property. This happens during
Application.AuthenticateRequest event.
Assuming we log in user via
CreateUserWizard control, then by the time
CreatUserWizard's ContinueButtonClick event is raised, security context for that user is already initialized.
But was the security context initialized by
FormsAuthenticationModule or by some other module? Namely, isn't
FormsAuthenticationModule called only during
Application.AuthenticateRequest event?
thanx