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-fork-0.6.4.tar.gz (38.3 kB view details)

Uploaded Source

Built Distribution

Flask_KVSession_fork-0.6.4-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file Flask-KVSession-fork-0.6.4.tar.gz.

File metadata

  • Download URL: Flask-KVSession-fork-0.6.4.tar.gz
  • Upload date:
  • Size: 38.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for Flask-KVSession-fork-0.6.4.tar.gz
Algorithm Hash digest
SHA256 709e6a3bcb828fc181e3c26781534ae645409e313db682b7a03b5be1b3fea5c7
MD5 a65be44f6dbe8694c8e086ab00434ddc
BLAKE2b-256 8618cd8e47e67629dbe996dfade3737e2882bfbedc5a30e67ecd75de00695e07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Flask_KVSession_fork-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for Flask_KVSession_fork-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 024f52557fb9b70bd1ef21d0888897b33a677972d83986f1bff5621a67505eed
MD5 612ba160d7e230dbf4c46509735ce2f7
BLAKE2b-256 7ef5e47afec85c91188bf5b1f593a100b39b97cfd6d06ceb08a800cafc482b7f

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