Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Multiple backends for your sessions!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 multi_sessions
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 AUTHORS
Octocat-spinner-32 README.rst
Octocat-spinner-32 setup.py
README.rst

django-multi-sessions

Multiple backends for your sessions!

https://secure.travis-ci.org/adw0rd/django-multi-sessions.png https://pypip.in/d/django-multi-sessions/badge.png

Designed for moving sessions from one session engine to another, without stopping the current sessions. It consistently passes backends in the list (settings.SESSION_MULTISESSIONS_POOL) and depending on the modes of doing the necessary.

For more information see:

Installation

1. Download the archive and run python setup.py install or pip install django-multi-sessions

2. Set multi_sessions.session as your session engine, like so:

SESSION_ENGINE = "multi_sessions.session"

3. Example settings:

SESSION_MULTISESSIONS_POOL = (
    {"backend": "redis_sessions.session", "modes": ["read", "write"]},
    {"backend": "django.contrib.sessions.backends.db", "modes": ["read", "delete"]},
)

4. Available modes:

  • "read" - Allows launch "load" method;
  • "write" - Allows launch "save" and "create" method;
  • "delete" - Allows launch the "delete" method.
Something went wrong with that request. Please try again.