Built-in Session Interfaces¶
NullSessionInterface
¶
If you do not configure a different SESSION_TYPE
, this will be used to
generate nicer error messages. Will allow read-only access to the empty
session but fail on setting.
RedisSessionInterface
¶
Uses the Redis key-value store as a session backend. (redis-py required)
Relevant configuration values:
SESSION_REDIS
MemcachedSessionInterface
¶
Uses the Memcached as a session backend. (pylibmc or memcache required)
SESSION_MEMCACHED
FileSystemSessionInterface
¶
Uses the cachelib.file.FileSystemCache
as a session backend.
SESSION_FILE_DIR
SESSION_FILE_THRESHOLD
SESSION_FILE_MODE
MongoDBSessionInterface
¶
Uses the MongoDB as a session backend. (pymongo required)
SESSION_MONGODB
SESSION_MONGODB_DB
SESSION_MONGODB_COLLECT
SqlAlchemySessionInterface
¶
New in version 0.2.
Uses SQLAlchemy as a session backend. (Flask-SQLAlchemy required)
SESSION_SQLALCHEMY
SESSION_SQLALCHEMY_TABLE