Reputation: 81
When I create a user using membership in asp.net, after successfully create user it get automatically login to the system. But I don't want to login immediately. Can someone help me?
Upvotes: 1
Views: 38
Reputation: 587
Set LoginCreatedUser property to false. For example,
protected void Page_Load(object sender, EventArgs e)
{
// Replace createUserWizard1 with ID of your CreateUserWizard control.
createUserWizard1.LoginCreatedUser = false;
}
Upvotes: 1