title: Why doesn't SESSION_EXPIRE_AT_BROWSER_CLOSE = True log the user out when the browser is closed?
body: <p>According to Django documentation, "if SESSION_EXPIRE_AT_BROWSER_CLOSE is set to True, Django will use browser-length cookies -- cookies that expire as soon as the user closes his or her browser. Use this if you want people to have to log in every time they open a browser."</p>
  
  <p>And that is what I did by adding the following line to my settings.py file (and restarting the server):</p>
  
  <pre><code># Close the session when user closes the browser
  SESSION_EXPIRE_AT_BROWSER_CLOSE = True
  </code></pre>
  
  <p>Then I logged into a page which checks if the user is authenticated, and then I closed the browser. When I open my browser again and visit the same page it does not ask for a username and a password because it passes the following test apparently:</p>
  
  <pre><code>def check_teacher(request):
      result = {}
      if request.user.is_authenticated():
          ...
  </code></pre>
  
  <p>What am I doing wrong or what am I missing? Any suggestions?</p>
  
  <p>I'm using Django version 1.3 pre-alpha SVN-13858 on my Ubuntu GNU/Linux 10.10 system and running the above example using the Django development server.</p>