Hi there - how could I set a cookie with all the relevant data, but rather than having it for domain.com I need it for:
everysubdomainavailable.domain.com and every /folder on every subdomain and the main domain?
Thanks,
Chris
from the manual
http://www.php.net/manual/en/function.setcookie.php
bool setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]]]]]) path : The path on the server in which the cookie will be available on. If set to '/', the cookie will be available within the entire domain. If set to '/foo/', the cookie will only be available within the /foo/ directory and all sub-directories such as /foo/bar/ of domain. The default value is the current directory that the cookie is being set in. domain : The domain that the cookie is available. To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to www.example.com will make the cookie only available in the www subdomain. Refer to tail matching in the spec for details.
reg kevin
Thank you! 🙂