I have code where the user clicks a submit button, it sets a cookie with javascript, then PHP uses isset($_COOKIE('name')) to test for it and if it is present query_posts a particular way.
The cookie and query work perfectly on my personal live test site. However, on my client's site it works perfectly when I am actually logged in to wp-admin and go look at the site. When not logged in, it continues to set the cookie properly but is not detected by the isset .
Please help, I have tried everything. The code is good. I tinkered back and forth with the path and domain to make sure that wasn't it. The only difference I can see between the 2 live sites is that the one that works is
http://www.example.com
whereas the one that doesn't is
example.wpengine.com
Any thoughts anyone?