title: how to test user is or not close the cookie using django
body: <p>i use this code :</p>
  
  <pre><code>request.session.set_test_cookie()
  </code></pre>
  
  <p>the all code is :</p>
  
  <pre><code>def main(request, template_name='index.html'):
      context ={
                'a':a,
                'cookie':request.session.set_test_cookie(),
      }
      return render_to_response(template_name, context)
  </code></pre>
  
  <p>but it return None ,</p>
  
  <p>what can i do ,</p>
  
  <p>thanks </p>