View Single Post
Old 08-08-2005, 01:07 PM   #12 (permalink)
metazai
Regular Contributor
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 125
metazai is on a distinguished road
Well, I solved it, and for the life of me I don't know why this is, but I found it in another forum on the web. Check it out . . . if you're having problems with IE figuring out the time settings and expiration on your cookie, add a ,"/". in the code. So this is what I have now that works.
Code:
 if(isset($_COOKIE['cart_id'])) { 
     $cart_id = $_COOKIE['cart_id']; 
	  } else { 
     $cart_id = md5(uniqid(rand())); 
     setcookie("cart_id", $cart_id, time() + 3600, "/"); 
}
Why? Why NOT?

I hate computers.

=+)
metazai is offline   Reply With Quote