Check out the setcookie documentation on php.net ... there are some caveats with setting cookies that you may be running into. Also, try setting all of the paramaters, even if you want the defaults (just set the defaults), as this can sometimes cause issues in some browsers, which result in the cookie not being set (without error).
|