I am serving dynamic image content which is generated by PHP. But for such requests to a .php file, the PHPSESSID cookie is being sent along, which is a waste.
Is it possible to prevent PHP from sending this cookie with requests to a PHP file? Or is it completely necessary for PHP to work?
Thanks for your time!
The browser will send any cookie that applies to a certain path-domain combination. You have no control over that, except using different paths and domains. This is why many sites use static content domains.