Metadata-Version: 2.1
Name: django-session-timeout
Version: 0.0.4
Summary: Middleware to expire sessions after specific amount of time
Home-page: https://github.com/LabD/django-session-timeout
Author: Lab Digital
Author-email: opensource@labdigital.nl
License: MIT
Description: 
        
        ======================
        django-session-timeout
        ======================
        
        Add timestamp to sessions to expire them independently
        
        Installation
        ============
        
        .. code-block:: shell
        
           pip install django-session-timeout
        
        
        Usage
        =====
        
        Update your settings to add the SessionTimeoutMiddleware:
        
        .. code-block:: python
        
            MIDDLEWARE_CLASSES = [
                # ...
                'django.contrib.sessions.middleware.SessionMiddleware',
                'django_session_timeout.middleware.SessionTimeoutMiddleware',
                # ...
            ]
        
        
        And also add the ``SESSION_EXPIRE_SECONDS``:
        
        
        .. code-block:: python
        
            SESSION_EXPIRE_SECONDS = 3600  # 1 hour
        
        
        By default, the session will expire X seconds after the start of the session.
        To expire the session X seconds after the `last activity`, use the following setting:
        
        .. code-block:: python
        
            SESSION_EXPIRE_AFTER_LAST_ACTIVITY = True
        
        
        By default, `last activiy` will be grouped per second.
        To group by different period use the following setting:
        
        .. code-block:: python
        
            SESSION_EXPIRE_AFTER_LAST_ACTIVITY_GRACE_PERIOD = 60 # group by minute
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Provides-Extra: docs
Provides-Extra: test
