title: How to clear all session variables without getting logged out
body: <p>I am trying to clear all of the session variables but not logout the current user.</p>
  
  <pre><code>user = request.session.get('member_id', None)
  request.session.flush()
  request.session.modified = True
  request.session['member_id'] = user
  request.session.modified = True
  </code></pre>
  
  <p>Will this also affect other users of the site?</p>