bool setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]]]]])
path:
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.