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

There is a problem when using kvsession in python2.6 #34

Open li-gjhawar opened 9 years ago

li-gjhawar commented 9 years ago

This is the error got when I tried to use kvsession with python2.6. Can you make some code changes so that this can be used with the older python version as well, as till date a lot of people are still on python 2.6.

init.py", line 192, in save_session ttl = current_app.permanent_session_lifetime.total_seconds()

AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'