title: Django: is_authenticated and is_anonymous both return true after logout
body: <p>I am using django-registration, and just set it up. </p>
  
  <pre><code>{{user.is_authenticated }}
  </code></pre>
  
  <p>is true, even though i went already to /accounts/logout/ and logged the user out. </p>
  
  <pre><code>{{user.is_anonymous }} 
  </code></pre>
  
  <p>returns true also. According to django docs, those two should be different:</p>
  
  <blockquote>
    <p>is_anonymous: Always returns False. This is a way of differentiating User and AnonymousUser objects. Generally, you should prefer using is_authenticated() to this method.</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>is_authenticated: Always returns True. This is a way to tell if the user has been authenticated. This does not imply any permissions, and doesn't check if the user is active - it only indicates that the user has provided a valid username and password.</p>
  </blockquote>
  
  <p>I am using the standard views that come with django-registration and haven't touched them yet. In the tempalate i have the following code:</p>
  
  <pre><code>{% if user.is_authenticated %}
  {% user }}
  {% if user.is_anonymous %}
      is anonymous
  {% endif $}
  {% else %}
      gotta login
  {% endif %}
  </code></pre>
  
  <p>Where would the problem be? I will be really thankful!</p>
  
  <p>UPDATE:
  i have noticed that on the homepage, it both is_authenticated and id_anonymous return True, while if i go to /accounts/login before loging in, only is_anonymous returns true as it should be. And also, on the homepage, i have the following view if that helps:</p>
  
  <pre><code>def home(request):
      return render_jinja(request, 'index.html', blah = 'ga')
  </code></pre>
  
  <p>UPDATE 2:
  print(request.user.is_authenticated()) gives False. Then, i have:</p>
  
  <pre><code>return render_jinja(request, 'index.html', blah = 'ga')
  </code></pre>
  
  <p>and in the template, user.is_authenticated returns FALSE. </p>
  
  <p>UPDATE 3:
  If i use render_to_response, instead of render_jinja, all is good. still don't know how to fix this though :(</p>