Metadata-Version: 2.0
Name: django-session-timeout
Version: 0.0.1
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
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
Requires-Dist: Django (>=1.8)
Requires-Dist: six (>=1.1)
Provides-Extra: docs
Requires-Dist: sphinx (>=1.4.0); extra == 'docs'
Provides-Extra: test
Requires-Dist: coverage (==.4.2); extra == 'test'
Requires-Dist: flake8 (==3.0.3); extra == 'test'
Requires-Dist: flake8-blind-except (==0.1.1); extra == 'test'
Requires-Dist: flake8-debugger (==1.4.0); extra == 'test'
Requires-Dist: freezegun (==0.3.9); extra == 'test'
Requires-Dist: isort (==4.2.5); extra == 'test'
Requires-Dist: pytest (==3.0.5); extra == 'test'
Requires-Dist: pytest-django (==3.1.2); extra == 'test'

======================
django-session-timeout
======================


Status
======
.. image:: https://travis-ci.org/LabD/django-session-timeout.svg?branch=master
    :target: https://travis-ci.org/LabD/django-session-timeout

.. image:: http://codecov.io/github/LabD/django-session-timeout/coverage.svg?branch=master
    :target: http://codecov.io/github/LabD/django-session-timeout?branch=master

.. image:: https://img.shields.io/pypi/v/django-session-timeout.svg
    :target: https://pypi.python.org/pypi/django-session-timeout/


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




