MasoniteFramework / masonite

The Modern And Developer Centric Python Web Framework. Be sure to read the documentation and join the Discord channel for questions: https://discord.gg/TwKeFahmPZ
http://docs.masoniteproject.com
MIT License
2.17k stars 127 forks source link

Support for global session cookie settings #800

Open riteshjha opened 1 month ago

riteshjha commented 1 month ago

Is your feature request related to a problem?

We can not set the cookie settings from config

What do we currently have to do now?

Currently we have to provide the cookie settings every time cookie created

Describe the solution you'd like

We can put the cookie settings in config/session.py file DRIVERS = { "default": "cookie", "cookie": { "samesite": "lax" }, }

Describe alternatives you've considered

No response

Would this be a breaking change ?

Anything else ?

No response

riteshjha commented 3 weeks ago

here is the pull request 801