title: remember me symfony2 cookie deleting when closing the browser
body: <p>I want to add a "remember me" to my login form.</p>
  
  <p>I've done everuthing like in the symfony2 documentation</p>
  
  <p>here is my security.yml file:</p>
  
  <pre><code>remember_me:
              key:      "%secret%"
              lifetime: 31536000
              path:     /
              domain:   ~ 
  </code></pre>
  
  <p>And i have added this checkbox in my login form :</p>
  
  <pre><code>&lt;input type="checkbox" id="remember_me" name="_remember_me" /&gt;
  </code></pre>
  
  <p>when i log in to my account, the cookie is created, but when i close my browser and come back, i don't have remember me cookie anymore</p>
  
  <p>anyone see where is the problem ?</p>
  
  <p>thanks for your answers </p>