Regarding CNAME's, most major DNS providers provide an ALIAS/ANAME record type which is synthetic and fixes the apex record issue.
As for the cookie problem, if you're specific and scope the cookie to the apex domain it will only work for the apex domain. If you don't scope it, you leave it up to the browser to determine and that varies. I'd argue that's a browser issue and you should be scoped to a domain as default.
Let www die already! Redirect to non-www!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Regarding CNAME's, most major DNS providers provide an ALIAS/ANAME record type which is synthetic and fixes the apex record issue.
As for the cookie problem, if you're specific and scope the cookie to the apex domain it will only work for the apex domain. If you don't scope it, you leave it up to the browser to determine and that varies. I'd argue that's a browser issue and you should be scoped to a domain as default.
Let www die already! Redirect to non-www!