title: Web Security is authenticated always return "false"
body: <p>i have a issue with my websecurity authentication , i can't login is. authenticated retrurn always false 
   When I login always it sends me to login page. I debugged it and I found a problem httpContext.Request.IsAuthenticated always return false , any help ..
  Controller : </p>
  
  <pre><code>public ActionResult Login(string returnUrl)
          {
              ViewBag.ReturnUrl = returnUrl;
              return View();
          }
          [AllowAnonymous]
          [HttpPost]
          public ActionResult Login(UserProfile register)
          {
  
              WebSecurity.Login(register.UserName, register.password, true);
              if (User.Identity.IsAuthenticated)
              {
                  return RedirectToAction("Index", "Home");
              }
  
              return RedirectToAction("Index", "Contact");
          }
  </code></pre>
  
  <p>view : </p>
  
  <pre><code>&lt;h2&gt;@ViewBag.Title.&lt;/h2&gt;
  &lt;div class="row"&gt;
      &lt;div class="col-md-8"&gt;
          &lt;section id="loginForm"&gt;
              @using (Html.BeginForm("Login", "AccountHopital", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
              {
                  @Html.AntiForgeryToken()
                  &lt;h4&gt;Utilisez un compte local pour vous connecter.&lt;/h4&gt;
                  &lt;hr /&gt;
                  @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                  &lt;div class="form-group"&gt;
                      @Html.LabelFor(m =&gt; m.UserName, new { @class = "col-md-2 control-label" })
                      &lt;div class="col-md-10"&gt;
                          @Html.TextBoxFor(m =&gt; m.UserName, new { @class = "form-control" })
                          @Html.ValidationMessageFor(m =&gt; m.UserName, "", new { @class = "text-danger" })
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      @Html.LabelFor(m =&gt; m.password, new { @class = "col-md-2 control-label" })
                      &lt;div class="col-md-10"&gt;
                          @Html.PasswordFor(m =&gt; m.password, new { @class = "form-control" })
                          @Html.ValidationMessageFor(m =&gt; m.password, "", new { @class = "text-danger" })
                      &lt;/div&gt;
                  &lt;/div&gt;
  </code></pre>
  
  <p>and web.config :</p>
  
  <pre><code>  &lt;system.web&gt;
      &lt;membership defaultProvider="SimpleMembershipProvider"&gt;
        &lt;providers&gt;
          &lt;add name="SimpleMembershipProvider" type="WebMatrix.WebData.SimpleMembershipProvider, WebMatrix.WebData"  /&gt;
        &lt;/providers&gt;
  
      &lt;/membership&gt;
  
      &lt;authentication mode="Forms"&gt;
        &lt;!--&lt;modules&gt;
        &lt;remove name="FormsAuthentication" /&gt;
  &lt;/modules&gt;--&gt;
        &lt;forms  loginUrl="~/AccountHopital/Login" timeout="3600" /&gt;
  
      &lt;/authentication&gt;
      &lt;compilation debug="true" targetFramework="4.5" /&gt;
      &lt;httpRuntime targetFramework="4.5" /&gt;
    &lt;/system.web&gt;
    &lt;system.webServer&gt;
      &lt;modules&gt;
        &lt;remove name="FormsAuthentication" /&gt;
      &lt;/modules&gt;
    &lt;/system.webServer&gt;
  </code></pre>