title: Multiple django session tables
body: <p>An application requires two user models for authentication. First is the AUTH USER model which has name, email and password and another is Account model which has foreign key relationship with AUTH USER MODEL. PermissionsMixin is inherited by the account model, so all the groups and permissions are related to it, rather to  the AUTH USER model.</p>
  <p>All the other models and views are associated with Accounts model.</p>
  <p>User registration is done once using AUTH USER model. But login should happen in following stages.</p>
  <ol>
  <li>Session authentication for AUTH USER model with email and password which will return session cookies. (say auth cookie). Only purpose of this cookie is to the remember the user until he logins using Account model and cannot be used to access anything else.</li>
  <li>Using the auth cookie, user gets the list of accounts from the accounts table associated with his AUTH USER entry</li>
  <li>User sends the account_id along with the auth cookie.</li>
  <li>Backend returns new session cookie (say account cookie) for that user account and user will have all the permissions associated with that account.</li>
  </ol>
  <p>Problem: Django session framework authenticates only against the AUTH USER model, so how can I create account session &amp; cookie the second time for the account model? How can I have multiple session tables for authentication?</p>