How to set a cookie only for a domain (without subdomains)?
cookies, php
Solution
This can't be done, apparently.
If someone finds a way, I will change the accepted answer.
Problem
I need to set cookies for example.com, but I want static.example.com to be cookie-less. Setting the domain parameter in setcookie() will make them available for example.com and all its subdomains, which I don't want. Any ideas?