1

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?

1
  • Make sure your question includes. 1) Current input 2) Code snippets you have tried 3) Expected output 4) error messages if getting any. stackoverflow.com/help/how-to-ask Commented Apr 10, 2015 at 6:08

1 Answer 1

1

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;
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.