pallets-eco / flask-session

Server side session extension for Flask
https://flask-session.readthedocs.io
BSD 3-Clause "New" or "Revised" License
507 stars 238 forks source link

'session_cookie_name' is deprecated #150

Closed b-simjoo closed 1 year ago

b-simjoo commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Flask-Session 0.5.0 is now available.