PHP Cookies and a Firefox

I’m trying to rip off wordpresses and Movable Types comment thing, where it saves a cookie on your computer with your name and email for easy commenting. Well my code to do this works fine in internet explorer, but doesn’t seem to work in firefox, I haven’t bothered to test in opera yet.

So first off, does firefox just disable cookies by default or something? I’m thinking not since I automatically log onto forums all the time. So that leads me to believe it’s my shoddy code. I’ve never used cookies before, so my code might be horifically wrong. I’m just going to post up the way I set the cookies, as the retrieval is fine I’m sure.

setcookie('name', $name, time()+60*60*24*30);
setcookie('emailuri', $emailuri, time()+60*60*24*30);

I know for a fact that the variables are not empty. So I’m just lost here.

Any ideas?