title: Django/Auth: logout clears the session data?
body: <p>I would like to know if <a href="https://github.com/django/django/blob/1.3/django/contrib/auth/views.py#L71" rel="noreferrer">auth.logout</a> clears <em>session</em> data or i have to do it by my self.</p>
  
  <pre><code>from django.contrib.auth.decorators import login_required
  from django.contrib import auth
  @login_required
  def logout(request):
      auth.logout(request)
      return redirect('base:homepage')
  </code></pre>
  
  <p>Something like this...</p>
  
  <pre><code>from django.contrib.auth.decorators import login_required
  from django.contrib import auth
  
  @login_required
  def logout(request):
      for sesskey in request.session.keys():
          del request.session[sesskey]
      auth.logout(request)
      return redirect('base:homepage')
  </code></pre>
  
  <p>Thanks!</p>