I have spent the past hour searching on Google for an answer to this question and did not have any luck. We have tried installing a cookie on a web site in both PHP and Javascript and both of them are not working properly. On all of our other servers there was no issue with the code working properly. Is it possible that there is a setting on the server that can be blocking cookies in both PHP and JavaScript?
I’m pretty sure that a server setting cannot block any sort of javascript code from working whether it be related to cookies or not, but a thing you might want to look into if you haven’t already is the client side; rather than the server your browser through which you are testing could possibly have a problem.
Have you called session_start() at the very start of your PHP?