title: issue with forms authentication - Unable to redirect from login page to home page after authentication
body: <p>In Sharepoint 2010 we created a web application with classic authentication and started developing it. Later, we want to implement forms authentication to our project, so I created a new SharePoint Web Application with form based authentication enabled. I took the backup of the old site (classic auth.) and restored to the new site (fba). I implemented forms authentication by following the below link:</p>
  
  <p><a href="http://donalconlon.wordpress.com/2010/02/23/configuring-forms-base-authentication-for-sharepoint-2010-using-iis7/" rel="nofollow">Configuring Forms Based Authentication for SharePoint 2010 using IIS7</a></p>
  
  <p>I created a custom sign-in page. After entering valid credentials the user is not redirected to the Home page. Authentication is happening properly but it is not redirecting to the home page. When I click on the login button, it is again loading the same login page. Please find the below code for authenticating and redirecting to home page:</p>
  
  <pre><code>protected void btnLogin2_Click(object sender, EventArgs e)
  {
    if (Membership.ValidateUser(txtUserId.Value, txtPassword.Value))
    {
      string link = "http://ejudnam:36414/sites/Prototype/Dashboard/Pages/default.aspx");
  
      Response.Redirect(link);
  
      //I tried with the below line also but it is of no use
      // SPUtility.Redirect(link, SPRedirectFlags.Default, this.Context);
    }  
    else
    {
      lblMessage.Text = "Login Failed.";
    }
  }
  </code></pre>
  
  <p>We are unable to figure out the issue. I tried so many solutions but they are of no use.</p>