when checking to see if a cookie exists i am using this script:
if(!$HTTP_COOKIE_VARS["sessionid"])
{
$session = md5(uniqid(rand()));
setcookie("sessionid", $session, time() + 30);
}
else
{
$session = $HTTP_COOKIE_VARS["sessionid"];
}
but i always get this error when the cookie does not exist ... how do i prevent this error from showing in the window:
"Warning: Undefined index: sessionid in d:\shoppingcart\entry.php on line 5"