I’m trying to return a response that sets a cookie for example.com and http://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?
I’m trying to return a response that sets a cookie for example.com and www.example.com.
Share
Ah! set_cookie() has a domain parameter.
Problem solved.