hey guys,
having a bit of problems w/ cookies. i have a little cart setup and everything appears to be fine except w/ the odd item where it can be added to the cart but doesn't display immediately. if i add a different product (or two) after adding it, it will eventually show up in the cart (with a correct count). i'm setting a cookie on each page like this:
<?
if (!isset($cookie[0])) setcookie("cookie[0]", "0");
?>
the array id is the product id of the item, but i do not have a product w/ id of 0, so i use the 0 to simply set the cookie. is this a bad idea?
any advice would be appriated.
thanks,