Closed yuryatr closed 7 years ago
If the permanent == False
the expires
is set to None
get_expiration_time method.
expires = self.get_expiration_time(app, session)
Here "expires" is None
Therefore error.
if document and document.get('expiration') <= datetime.utcnow():
TypeError: can't compare datetime.datetime to NoneType
Flask-Session only works when permanent is True, if you need non-permanent session, use the builtin cookie session.
Why there is not
expiration
in the document?