pallets-eco / flask-session

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

Change references to deprecated app.session_cookie_name (Flask 2.2.0+) #153

Closed audiodude closed 1 year ago

audiodude commented 1 year ago

In Flask 2.2.0, the app-wide variable app.session_cookie_name has been deprecated, in favor of app.config['SESSION_COOKIE_NAME']. This PR replaces all references to the former with the latter.

According to the Changelog, the deprecated attribute simply "proxied config keys on app" (source: https://flask.palletsprojects.com/en/2.2.x/changes/#version-2-2-0), so this change should be backwards compatible.

rayluo commented 1 year ago

Thanks for the PR. This is a duplicate of PR #148, with relevant discussion already happening there. Suggest to mark this PR as duplicated and close it. Still thank you, @audiodude !