Skip to main content

Transparent server-side session support for flask

Project description

Flask-KVSession is an MIT-licensed server-side session replacement for Flask’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-package for storing session data on a variety of backends, including redis, memcached, SQL databases using SQLAlchemy, mongoDB 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, you can find the documentation on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_kvsession_invenio-0.6.4.tar.gz (42.4 kB view details)

Uploaded Source

Built Distribution

Flask_KVSession_Invenio-0.6.4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file flask_kvsession_invenio-0.6.4.tar.gz.

File metadata

File hashes

Hashes for flask_kvsession_invenio-0.6.4.tar.gz
Algorithm Hash digest
SHA256 5f153ccdab2ec013b9be23e80faa995f872b8559c9bce6322e1a5cb260e3fde4
MD5 4d2afc6f268add60a1eec3e15b68fb49
BLAKE2b-256 f1bbd5fe5cd6a3d1520c2484243e43625942551814944f7ab8621535de3a30a4

See more details on using hashes here.

File details

Details for the file Flask_KVSession_Invenio-0.6.4-py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_KVSession_Invenio-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4c49a34bc3c1f4b53175d10514769818ec861febd129a3b545ebf9a8ad5d7bbb
MD5 50f51ccde566960e93b8ce771c344fcf
BLAKE2b-256 43cff35561828c6e87989c810e4e8b519508f3ffd96d5c863d5a474edf900ff6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page