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.21k stars 126 forks source link

Support for global session cookie settings #800

Closed riteshjha closed 3 months ago

riteshjha commented 6 months 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 5 months ago

here is the pull request 801