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, which 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 copied, it is no longer possible to use it as a valid 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 seemless, 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-KVSession has good unit test coverage and documentation available at http://flask-kvsession.readthedocs.org.

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for Flask-KVSession-0.1.tar.gz
Algorithm Hash digest
SHA256 a3b0d204eaacaea5ccfd75cb7160804c339f4c3fef816c0ba810f474bf24295d
MD5 30a1003c03201fb889647d356742148a
BLAKE2b-256 10067a73345dd722cdc63f7da559d62cbae15f0e0fd7d80e3bb0cbd1122df52f

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