Skip to main content

Transparent server-side session support for flask

Project description

Flask-KVSession is a drop-in replacement for Flask’s signed cookie-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. Even if the session cookie is stolen, it is no longer possible to use the session.

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. The drawback is that sessions need to be stored. Flask-KVSession uses the simplekv-package for storing session data on a variety of backends.

Integration with Flask is seamless, once the extension is loaded for a Flask application, it transparently replaces (or rather, extends) Flask’s own Session class for this instance. Any application working with sessions should work the same with Flask-KVSession.

Documentation

Flask-KVSessions includes good unit test coverage. See also:

License

Flask-KVSession is MIT-licensed.

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for Flask-KVSession-0.3.2.tar.gz
Algorithm Hash digest
SHA256 4218b9b574551181792da768736055119e86d4552232e4f134ab85bede0f7bd7
MD5 a392379523acdfae9e52773deaa429d0
BLAKE2b-256 2d0a2882e92deb93a294dd874f7bf9381e0c8156a84cbc00cb694c807161e2ac

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