title: Django How to prevent multiple users login using the same credentials
body: <p>I am developing an Django application using django auth module and would like to prevent multiple login using the same user name and password.</p>
  
  <p>It should prevent multiple logins on different machines using the same user name and password. How do I achieve this in Django?</p>
  
  <p>We have to keep following things in mind:</p>
  
  <ol>
  <li>If user close the browser without logging out</li>
  <li>If the session times out</li>
  </ol>