Theres a few bugs in the setcookie() functions and it tends to throw loads of weird errors.
I just wrote my own CookieSet() function thats a bit like this:
function CookieSet($name,$value,$expires)
{
$expires=7;
$exp= time() + ( $expires * 86400 );
$exp=strftime("%a, %d-%b-%Y %H:%M:%S", $exp);
$exp="$exp GMT";
header("Set-Cookie: $name=$value;expires=$exp;");
}
This uses the PHP header function and its much more reliable. It obviously needs a lot more work, but the basics are there and it works well.
Hope this helps
--
steve
www.2404.co.uk