CMD + K

flask-kvsession

Community

Transparent server-side session support for flask

Installation

To install this package, run one of the following:

Conda
$conda install wakari::flask-kvsession

Usage Tracking

0.6.2
1 / 8 versions selected
Downloads (Last 6 months): 0

Description

Flask-KVSession

.. image:: https://travis-ci.org/mbr/flask-kvsession.svg?branch=master :target: https://travis-ci.org/mbr/flask-kvsession

Flask-KVSession is an MIT-licensed <https://github.com/mbr/flask-kvsession/blob/master/LICENSE>_ server-side session replacement for Flask <http://flask.pocoo.org>_'s signed client-based session management. Instead of storing data on the client, only a securely generated ID is stored on the client, while the actual session data resides on the server.

This has two major advantages:

  • Clients no longer see the session information
  • It is possible to securely destroy sessions to protect against replay attacks.

Other things are possible with server side session that are impossible with clients side sessions, like inspecting and manipulating data in absence of the client.

Flask-KVSession uses the simplekv <http://github.com/mbr/simplekv>-package for storing session data on a variety of backends, including redis <http://redis.io>, memcached <http://memcached.org>, SQL databases using SQLAlchemy <http://sqlalchemy.org>, mongoDB <http://www.mongodb.org/>_ or just flat files.

Integration with Flask is seamless, once the extension is loaded for a Flask application, it transparently replaces Flask's own Session management. Any application working with sessions should work the same with Flask-KVSession (if it does not, file a bug!).

Documentation and development

Development happens on github <https://github.com/mbr/flask-kvsession/>, you can find the documentation on PyPI <http://pythonhosted.org/Flask-KVSession>.

About

Summary

Transparent server-side session support for flask

Last Updated

Feb 5, 2019 at 18:41

License

MIT

Total Downloads

344

Supported Platforms

linux-64