title: Django : When is sessionid cookie set ? [ Is it available by default ? ]
body: <p>I am trying to track the user - without login. For that I tried using <code>sessionid</code> or django sessions.</p>
  
  <p><strong>View:</strong></p>
  
  <pre><code># Associating data with sessionid
  ob = MyModel(session_key=request.session.session_key, data='abc')
  ob.save()
  </code></pre>
  
  <p>Intention was to save specific data for each browser session.</p>
  
  <p><strong>Raises Error:</strong></p>
  
  <pre><code># session_key not found
  </code></pre>
  
  <p>I checked the cookies on the browser, there is only <code>csrftoken</code>.
  <code>sessionid</code> was not in the cookie list.</p>
  
  <p>I assumed that the <code>sessionid</code> is maintained no matter what ? But seems like that is not the case. </p>
  
  <p>So, When is <code>sessionid</code> created ? How can I manage <code>session</code> without user login ?</p>