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_cookie_name' is deprecated #150

Closed
b-simjoo opened this issue Jan 8, 2023 · 3 comments
Closed

'session_cookie_name' is deprecated #150

b-simjoo opened this issue Jan 8, 2023 · 3 comments
Milestone

Comments

@b-simjoo
Copy link

b-simjoo commented Jan 8, 2023

Hi, I'm using flask_session version 0.4.0 and Flask version 2.2.2, there is a warning that says:

sessions.py:372: 'session_cookie_name' is deprecated and will be removed in Flask 2.3. Use 'SESSION_COOKIE_NAME' in 'app.config' instead.

@bmakan
Copy link

bmakan commented Apr 26, 2023

Flask v2.3.0 dropped session_cookie_name from the app instance and this is now causing the flask to crash.

Temporary solution is not to use Flask v2.3+.

@igi-chris
Copy link

I started getting an error after deploying changes today:

AttributeError: 'Flask' object has no attribute 'session_cookie_name'

As you mentioned, changing the flask version to 2.2.4 seems to resolve the issue for now.

@davidism
Copy link
Member

Flask-Session 0.5.0 is now available.

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

4 participants