title: C# MVC3 and Membership keep me logged in (remember me)
body: <p>I'm using Membership features in my application and I have the following logIn code:</p>
  
  <pre><code>if (!Membership.ValidateUser(email, password))
  {
      ViewBag.Message = "E-mail ou senha estão incorretos.";
      return View();
  }
  else
  {
      FormsAuthentication.Authenticate(email, password);
      var keep = keepMeLoggedIn == "true,false" ? true : false;
      FormsAuthentication.SetAuthCookie(email, keep);
      return Redirect("~/Home/Mural");
  }
  </code></pre>
  
  <p>From yesterday to now, when I openned my app again, I was not logged in...
  I heard about that when you generate a persistent cookie the session never expires, is that true? What I'm doing wrong? Should I put some information else in web.config?</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms name=".ASPXAUTH" loginUrl="~/Usuario/Login" protection="All" timeout="360"   cookieless="UseDeviceProfile" /&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>Anybody can help?</p>