On Sun, Nov 2, 2008 at 2:52 PM, dforum <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Thanks for your suggestion.
>
> In fact ,the path was not right. Which block me to read the cookie.
>
> However, I still not been able to set the domain correctly. If I let it to
> null, it is ok, but with,
>
> http://*.example.org
>
> or
>
> .example.org

A working example would be:
setcookie('name', 'value', $expire, '/', '.example.org');

(Replace ".example.org" with your own domain.)

This means that the cookie is then readable when the user uses:
http://www.example.org
http://example.org
http://whatever-else-you-may-use.example.org

Till

Reply via email to