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

Enable support for SESSION_REFRESH_EACH_REQUEST #46

Open SvenFestersen opened 6 years ago

SvenFestersen commented 6 years ago

If app.config["SESSION_REFRESH_EACH_REQUEST"] is True, the expiration of permanent sessions is not checked against the creation date stored inside the session id, but against the "t_expires" field saved with a session in the store.

I also had to add some logging during development and decided to keep it around because it proved quite useful.