I'm trying to return a response that sets a cookie for example.com and www.example.com. I've only been able to set the cookie for the domain the request originates from. Can someone point me in the right direction?
Ah! set_cookie() has a domain parameter.
response.set_cookie('name', 'value', domain='.example.com')
Problem solved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With