title: Sitecore extranet login?
body: <p>I am trying to get the below code to work, but with no luck;</p>
  
  <pre class="lang-cs prettyprint-override"><code>bool success = Sitecore.Security.Authentication.AuthenticationManager.Login(UserName.Text, Password.Text);
  if (success)
  {           
      string path = Request.QueryString["path"];   
      Sitecore.Web.WebUtil.Redirect(String.IsNullOrEmpty(path) ? "/" : path);
  }
  </code></pre>
  
  <p>success is always false, eventhough i know that the entered username and password is correct and created on the extranet domain. </p>
  
  <p>What am i missing?</p>
  
  <p>(It's a Sitecore 6.2)</p>