title: localStorage vs sessionStorage vs cookies
body: <p>I am working in an app where I need to keep some data during the user is logged in and I have that question, what is the difference among 
  localStorage, sessionStorage, cookies ???</p>
  
  <p>I was asking what can I use in order to persist some data in the DOM, even if the user refresh the page, some people says: use sessionStorage, or localStorage, then, someone came up with the idea of use <a href="https://docs.angularjs.org/api/ngCookies/service/$cookies" rel="noreferrer">ngCookies</a> because it works in every browser, but, which should I use ?</p>