title: Symfony2 : Manage session time
body: <p>I have a simfony project where the user can log in. </p>
  
  <p>My goal is to start the session for the user when he login. 
  Then, if the user refresh the page, the session lifetime will be reset to the max value, if not, once the lifetime expires, the session will be closed.</p>
  
  <p>I set the session time to 10 sec in the config.yml and the auto start to false. The session starts correctly when the user login, but expires after 10sec even if the page is refreshed.</p>
  
  <p>How can I reset the lifetime when the page is refreshed or changed?</p>
  
  <p>Thank you very much.</p>
  
  <p>PS. Here is my config.yml</p>
  
  <pre><code>session:
      default_locale: %locale%
      lifetime:       10
      auto_start:     false
  </code></pre>