Skip to main content

Transparent server-side session support for flask

Project description

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

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-0.5.tar.gz (37.7 kB view details)

Uploaded Source

File details

Details for the file Flask-KVSession-0.5.tar.gz.

File metadata

  • Download URL: Flask-KVSession-0.5.tar.gz
  • Upload date:
  • Size: 37.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Flask-KVSession-0.5.tar.gz
Algorithm Hash digest
SHA256 0e44ecd38f86d04cfff633bafaff79c2c673cdcf62a9ab0dd3a2ad324f6d28bc
MD5 8dc80a14928b0cc28264e3fbd0a15ac6
BLAKE2b-256 1fe6bedb9507eb1cfec1792dc02bfd6b51920deb82f1533c0b59a242ada89620

See more details on using hashes here.

Supported by

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