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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_kvsession_invenio-1.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flask_kvsession_invenio-1.0.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for flask_kvsession_invenio-1.0.0.tar.gz
Algorithm Hash digest
SHA256 32fd189872be3ffea5d986b17a1df3c3b291eb54667cce575d93635e3deb5d38
MD5 47d94a6bd65180a6d489598567d5bf25
BLAKE2b-256 cb438f7e8326553572199ae784d6d54dd8ef22382696ff72679181ecd25f8ff6

See more details on using hashes here.

File details

Details for the file flask_kvsession_invenio-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_kvsession_invenio-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5132e22d1b8ecb81c457f6faff979c0cb3849b6fdb1eba9f93895c116096e2b
MD5 ec1b6c3b497fe9354d575e8abbe380ff
BLAKE2b-256 5229a6c2382f7bf0b67cb751689e3ef2827a2d2ae05a50c81b3d31fa230e404d

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