Skip to main content

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.

Download files

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

Source Distribution

docassemblekvsession-0.9.tar.gz (50.3 kB view details)

Uploaded Source

File details

Details for the file docassemblekvsession-0.9.tar.gz.

File metadata

  • Download URL: docassemblekvsession-0.9.tar.gz
  • Upload date:
  • Size: 50.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for docassemblekvsession-0.9.tar.gz
Algorithm Hash digest
SHA256 dd9dd27121ea4e5c95df3f11f4e802d8741d1e1500362f4b299276f3986cbc80
MD5 d7179b8c16f74fcd905fed90e8cbb64c
BLAKE2b-256 593942e7338860794980280c38a570fb733a673617e10792358cb92b8a76d09d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9 This release

1 file

0.8

1 file

0.7

1 file

0.6

1 file

0.5

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page