you must set the cookie's expiry time!

of-the manual:
setcookie ("TestCookie", "Test Value");
setcookie ("TestCookie", $value,time()+3600);  /* expire in 1 hour */
setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", "",

"Phpgalaxy.Com" <[EMAIL PROTECTED]> wrote in message
> I started an affiliate program to sell my scripts, and it uses cookies
> for tracking..  I didnt know it at the time, but as soon as the web
> browser's closed, the cookie info is gone. grrrr! I need it to stay
> there *permanently*! =) Here's the code I have no for both setting and
> retrieving..
> retrieving: $refid = $HTTP_COOKIE_VARS["refid"];
> setting: setcookie ("refid", $id);
> Am I just missing something I didnt see on =)
> --
> From, earn up to $10 per order selling our PHP Scripts
> and Software on your Site.
> Also, get a fast free POP3 email account, you at

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to