Closed grutz closed 6 months ago
This issue was moved to mcrowson/flask-session#10
I don't understand why expiry is null here :(
I'm having the same problem.
Same...
This was an issue where clear() was also clearing the _permanent in the session dict. Fixed post 0.7.0rc1
Setup: Flask 0.11, SQLAlchemy session interface, python 2.7.x
When using
session.clear()
to empty a session, say on a logout signal to ensure an empty session record, theexpiry
field is set to null in the database:This causes a TypeError exception on line 516:
Work-around solution is to check for
saved_session.expiry
before comparison: