title: asp.net login page not redirecting when successful
body: <p>I have a web site that we moved from one host to another. I also have the site running on my development machine. On my development machine and on the old host I could log into my administer section successfully. On the new host the Administer login page logs in successfully which I can see in the members table but just reposts to itself instead of going to the correct page. I have tried everything I can think of and that I have found on the web. I explicitly put the application name in the Web config providers and profiles sections. In an attempt to see what was happening I put a label on the login form, removed the destination page url from the login control and put in the following code to explicitly go to the default page.</p>
  
  <pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
      If IsPostBack Then
          If User.Identity.IsAuthenticated = True Then
              Response.Redirect("~/Admin/Default.aspx")
              lblResponse.Text = "Passed"
          Else
              lblResponse.Text = "Fail"
          End If
      Else
          lblResponse.Text = "New load"
      End If
  End Sub
  </code></pre>
  
  <p>Works fine on the development machine, but on the hosting site I get a new post of the login page, not a repost. Any suggestions would be much appreciated.</p>