I\'ve a problem with setting cookies in php. I\'ve to say that I\'m not very experienced with php, so maybe is a very stupid problem.
I\'ve an ajax rating system tha
Are you setting the cookie on the exact same URL? If you're using $_SERVER['HTTP_HOST'] then one browser may set it for http://example.com while another may set it on http://www.example.com. If you visit the alternate version the cookie won't be set.
To quote the PHP docs:
The domain that the cookie is available. To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to www.example.com will make the cookie only available in the www subdomain.
So try setting '.yoursite.com' as the domain.
Other things to try: