Skip to content
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 crash? #53

Closed
erwinyusrizal opened this issue Nov 12, 2016 · 1 comment
Closed

Session crash? #53

erwinyusrizal opened this issue Nov 12, 2016 · 1 comment

Comments

@erwinyusrizal
Copy link

erwinyusrizal commented Nov 12, 2016

Hi I tried to clear the session, since I have no idea how to clear all session once logout, but after I did session.clear() I got this error

File "../env/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ return self.wsgi_app(environ, start_response) File "../env/lib/python2.7/site-packages/flask/app.py", line 1984, in wsgi_app ctx.push() File "../env/lib/python2.7/site-packages/flask/ctx.py", line 332, in push self.session = self.app.open_session(self.request) File "../env/lib/python2.7/site-packages/flask/app.py", line 914, in open_session return self.session_interface.open_session(self, request) File "../env/lib/python2.7/site-packages/flask_session/sessions.py", line 516, in open_session if saved_session and saved_session.expiry <= datetime.utcnow(): TypeError: can't compare datetime.datetime to NoneType

I tried to drop my session db table but still doesnt work

any idea @fengsp ?

Thanks

@erwinyusrizal
Copy link
Author

I got it working now, just changing the prefix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant