title: Symfony 3 - How to keep session id after logging in?
body: <p>I want to use the session ID to identify the records in the database for anonymous user. When the user logs in, I would like to bind/relate the data to the user id. However, after logging in the session id is automatically changed by what I lose data binding with the user.</p>
  
  <p>How can I keep the session id after logging in order to bind the user id to the data, and then change the session id?</p>