title: How do I keep a session variable from changing?
body: <p>So I've got a session variable, req.session.user, that contains an object corresponding to a user account. When I do this,</p>
  
  <pre><code>var user = req.session.user;
  var fakeUser = user;
  fakeUser.username = 'bob';
  </code></pre>
  
  <p>user.username and req.session.user.username both get changed to 'bob' as well. How do I prevent this?</p>