title: Storing Credentials in Local Storage
body: <p>Could I securely use local storage instead of cookies to store session credentials? </p>
  
  <p>Would I need to store an encrypted hash??</p>
  
  <p>EDIT: Would this be secure enough?</p>
  
  <ul>
  <li><p>User logs in.</p></li>
  <li><p>Server returns success message including salted bcrypt hash mixing userid, password, timestamp, and possibly ip address. This is saved in local storage.</p></li>
  <li><p>On future connects this hash is sent, server assumes accountability as long as IP address hasn't changed, and time limit hasn't expired. </p></li>
  </ul>