title: Android app front-end with Django back-end auto login session
body: <p>I used Android app front-end with Django back-end. But it hasn't auto login. </p>
  
  <pre><code>from django.contrib.auth import login as auth_login
  def login_app(request):
      ...
      if request.user.is_authenticated():
          ...
      username = request.POST.get('username', '')
      password = request.POST.get('password', '')
      user = authenticate(username=username, password=password)
      if user is not None and user.is_active:
          auth_login(request, user)
          ...
      return ...
  </code></pre>
  
  <p>When I call this func twice. It get a anonymous user instance.</p>
  
  <pre><code>if request.user.is_authenticated():
  </code></pre>
  
  <p>How do I do so that can be True?<br>
  Set cookie? How?<br>
  Excuse for poor English.</p>