Set cookie:
Code: Select all
setcookie("cust", $id, time()+60*60*2, '/');Code: Select all
$cust = $_COOKIE["cust"];Moderator: General Moderators
Code: Select all
setcookie("cust", $id, time()+60*60*2, '/');Code: Select all
$cust = $_COOKIE["cust"];Code: Select all
$HTTP_COOKIE_VARS['cookiename'];That was it !!!! I never would have thought of setting the domain since everything is on the same domain, but I did it anyway and it fixed the problem! Turns out due to the way the links are created, the script setting the cookies was at http://www.mydomain.com, but the scripts reading were a just mydomain.com without the www.feyd wrote:Make sure the domain and path are set correctly for the read and set pages.