mbr / flask-kvsession

A drop-in replacement for Flask's session handling using server-side sessions.
http://pythonhosted.org/Flask-KVSession/
MIT License
168 stars 53 forks source link

Add support to custom session classes #19

Closed chronossc closed 10 years ago

chronossc commented 10 years ago

Flask allow us to use custom session classes with code like:

app.session_interface.session_class = PermanentSecureCookieSession

KVSessionInterface uses KVSession hardcoded (here, here and here) and does not allow us to customize it without rewrite KVSessionExtension.

This must be solved like flask.sessions.SecureCookieSessionInterface does.

mbr commented 10 years ago

Seems like a good idea, done. Please give it a spin, as I have no means of quick testing other than unit tests right now.