title: How to store user session on local browser?
body: <p>I have a web app that requires user authentication, and I want to store the user info on the user machine so the user does not need to re-login.</p>
  
  <p>I thought of using Cookie but I am not sure how safe is that because one can simply use JS console to load and write cookie themselves.</p>
  
  <p>What is a common/popular way of doing that? I am using JS and servlet at the back.</p>