The book i have is a bit @!#$, and the only example for cookies it gives is 'setcookie("mycookie", "value") i know that calling $mycookie will return 'value' but i want to know about the other setcookie() options. i have looked on google for some cookie tutorials but they only go as far as expires part. How would i write a setcookie() that has the 'path' and 'domian' set to 'test'? would it be: setcookie("mycookie", "value", "expire stuff here", "test", "test"); the last 2 'test's being the 'path' and 'domain'...
thnx
Hi,
This should do the trick.
setcookie("value", "$value", time()+3600, "/" ,"websrv1");
/ being the path and websrv1 (my server) being the server name.
Elfyn