Metadata-Version: 1.1
Name: django-preventconcurrentlogins
Version: 0.7
Summary: Django middleware that prevents multiple concurrent logins.
Home-page: https://github.com/pcraston/django-preventconcurrentlogins
Author: Patrick Craston
Author-email: patrick@craston.com
License: MIT License
Description: django-preventconcurrentlogins
        ==============================
        
        Django middleware that prevents multiple concurrent logins. If a user is already logged into the Django application and
        tries to log in somewhere else, the previous session is deleted.
        
        
        This package is based on code from http://stackoverflow.com/a/1814797 and https://gist.github.com/peterdemin/5829440.
        
        
        Usage
        -----------
        
        1. Add "preventconcurrentlogins" to your INSTALLED_APPS settings like this::
        
            ```python
                INSTALLED_APPS = {        
                    ...
                        'preventconcurrentlogins',
                }
            ```
            
        
        2. Add "preventconcurrentlogins.middleware.PreventConcurrentLoginsMiddleware" to MIDDLEWARE_CLASSES::
        
            ```python
                MIDDLEWARE_CLASSES = {        
                    ...
                        'preventconcurrentlogins.middleware.PreventConcurrentLoginsMiddleware',
                }
            ```
            
        
        3. Run `python manage.py migrate` to create the visitor model that is used to track a users currently active session
        key.
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
