This works in I.E. but in Firefox it sets a session cookie, not a cookie based on the length parameter. I keep trying different variations of the last parameters, not including them, false instead of 0, nothing seems to work firefox always create a session based cookie. Anyone have any ideas how to prevent that from happening?
setcookie('theme', $id, time()+(60*60*24), '/', '.mydomain.com', 0, 0);