As a note, if you look at the Netscape Cookie Specification ( search Google ) it provides a real good overview of exactly how to set a cookie and what it is, and you don't need to rely on PHP's set_cookie() function, you can just set one with header()
Sometimes its easier to just use header(), you have a littlemore control over things sometimes.