title: persistent session through python requests
body: <p>I am using python requests to login a user from command line. I am also using <code>requests.session()</code> for persistence of the session. </p>
  
  <pre><code>&gt;&gt;&gt; s = requests.session()
  &gt;&gt;&gt; s.get('http://127.0.0.1:8888/accounts/login', auth=auth)
  &lt;Response [200]&gt;
  &gt;&gt;&gt; l= s.post('http://127.0.0.1:8888/user/set_interests/', data={'skills': 'management'})
  </code></pre>
  
  <p>but the session is not giving me expected results. The login is successful but when i do this:</p>
  
  <pre><code>s.post('http://127.0.0.1:8888/user/set_interests/', data={'skills': 'management'})
  </code></pre>
  
  <p>It shows me that no user is logged in.
  I also tried this:</p>
  
  <pre><code>&gt;&gt;&gt; with requests.session() as s:
  ...   p = s.get('http://127.0.0.1:8888/accounts/login/', auth=auth)
  ...   q = s.post('http://127.0.0.1:8888/user/set_interests/', data={'skills': 'management'})
  </code></pre>
  
  <p>But that is also showing the same results that no user is logged in.</p>
  
  <p>What should i do to ensure persistence so that within that session it takes user as the logged in user?</p>