-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
session.clear() removes expiry field, causing TypeError #56
Comments
grutz
added a commit
to grutz/flask-session
that referenced
this issue
Jan 23, 2017
This comment was marked as outdated.
This comment was marked as outdated.
I don't understand why expiry is null here :( |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
christopherpickering
added a commit
to christopherpickering/flask-session2
that referenced
this issue
Aug 17, 2022
This was referenced May 8, 2023
Closed
Lxstr
added a commit
that referenced
this issue
Mar 1, 2024
This was an issue where clear() was also clearing the _permanent in the session dict. Fixed post 0.7.0rc1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:The text was updated successfully, but these errors were encountered: