title: Angular2 - App with login and remember user
body: <p>I'm trying to write an application in Angular 2 (final version) with login and remember user functions. 
  I tried to understand the principle of this.</p>
  
  <p>1- The user enter his login and password and click on connect</p>
  
  <p>2- Angular2 request on webservices with user login and password</p>
  
  <p>3- Webservices creates a token and store it in the db</p>
  
  <p>4- Web services send it back to the front. </p>
  
  <p><strong>But what the front does with the token ? 
  Does it store it in localStorage ?</strong></p>
  
  <p>RememberMe: </p>
  
  <p>I've read this topic <a href="https://stackoverflow.com/questions/244882/what-is-the-best-way-to-implement-remember-me-for-a-website">What is the best way to implement &quot;remember me&quot; for a website?</a></p>
  
  <p>I understood that we need a token and check on each page if this token is present in cookies and if it's the same in db.</p>
  
  <p><strong>But is it a different token than the one for the login ?
  Do I store it in the localStorage, sessionStorage or as a cookie ?</strong> </p>
  
  <p>Do someone can explain all of this clearly to me ? 
  Or if you have any clear topic, tutorial or application code understandable I would be very pleased.</p>