title: Remember Me functionality not working in Symfony2
body: <p>I have implemented remember me functionality in Symfony2. When I log in with remember me box checked, cookie named "REMEMBERME" gets created. That cookie is also available if I close browser and open it after many hours. But when I load home page of my application, the cookie gets automatically deleted and I see no user logged in. Can anyone explain me the reason for cookie deletion? </p>
  
  <pre><code>remember_me:
            key:      qwerty
            lifetime: 604800
            path:     /
            domain:   ~ 
  </code></pre>
  
  <p>This is my security.yml file section</p>
  
  <p>EDIT: I have still not found the solution to this question... </p>
  
  <p>EDIT2: Now got new problem. The  REMEMBERME cookie does not get set at all. How to solve this??</p>
  
  <p>SOLVED: see answer below</p>