By Anonymous (not verified) on
I'm having problems setting a cookie in a custom module: the cookie just doesn't get created.
I am using setcookie($name, $value, 0) in a function which is called by hook_nodeapi.
Is there something I am missing?
Thanks
FnL
Comments
re: setting cookies
Subscribe.
...
You have to set the cookie path to '/' if you don't want the cookie to be recognized only in the path (and sub paths) where it was set. See PHP's reference for this func,