> SetCookie("cpvin","$vin","time()+1500");

SetCookie("cpvin",$vin,time()+1500);

Note though that such short expiry times make you very prone to people
having their clocks set wrong.  It is a better idea to embed your server's
timestamp in the value of the cookie and when you get the cookie back
compare that timestamp to your server's current time and determine if you
shoudl expire the cookie or not.  Leaving expiry to a remote user's badly
configured machine is a mistake.

> Today I tried putting: $cpvin = $HTTP_COOKIE_VARS["cpvin"];  at the
> top.. no luck there either.

Stick a phpinfo() call on your page and scroll to the bottom of the
output.  You will see all the incoming and outgoing headers for the
request.  Cookie headers will show up there.

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
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