On Sun, Nov 2, 2008 at 2:19 PM, dforum <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Tx, but I did not find Zend_Cookie.php
>
> Only, Zend_Http_Cookie exist, and I have not been able to use it. Finally I
> use setcookie. Which work but not has indicated in the doc !!!
> setcookie("visitor", "data",$expire,$_SERVER['HTTP_HOST'],null,null,true);
> ==> work fine
> setcookie("visitor", "datas",$expire,"/",$_SERVER['HTTP_HOST'],null,true);
>  ===>  does'nt work,  however the documentation indicate this format

Works for me according to the docs? Just btw, you can't omitt one in
the middle if for example you are looking to supply "httponly" in the
end.

Also, HTTP_HOST can change with each request, you probably want
".example.org" to include "http://example.org"; and
"http://www.example.org"; (and "http://*.example.org";).

If in doubt:
http://docs.php.net/setcookie

Cheers,
Till

Reply via email to