I'm trying to do something like this:
setcookie("foo", "bar");
echo($foo);
Of course it doesn't work... Any ideas why and how I can fix it?
Try this:
setcookie ("foo", "bar",time()+3600);
....you need to set the expiration time
No... Not really... If you do not pass an expiration date the cookie will expire when the browser is closed
Andreas Bernhardsen Graficonn
I did in the code, but I didn't in the post...