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

Anyway, now it works, and I'm seeing the cookie set, with the right expiration date.

But now, I'm not able to retreive the datas from the cookie. When I try $_COOKIE the array is empty.

I support MVC has surely clean the values, but which method should I use to retreive the datas from the cookie.

Thanks in advance for your help

Regards

David

PS : php -v = PHP 5.2.6 (cli) (built: May  8 2008 10:25:11)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies



Matthew Ratzloff a écrit :
The case can be made for a Zend_Cookie or something similar when it comes to mobile development, but other than that, use setcookie().

-Matt

On Sat, Nov 1, 2008 at 10:28 AM, Ben Scholzen 'DASPRiD' <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Zend Framework encourages you to use sessions over cookies for
    security
    reasons. If you still want to use cookies, use the built-in
    functions of
    PHP. It doesn't make sense to implement just a wrapper for those
    functions, that's another reason why no additional component for that
    makes sense.

    Ben
    ...................................
    :  ___   _   ___ ___ ___ _ ___    :
    : |   \ /_\ / __| _ \ _ (_)   \   :
    : | |) / _ \\__ \  _/   / | |) |  :
    : |___/_/:\_\___/_| |_|_\_|___/   :
    :........:........................:
    : Web    : http://www.dasprids.de :
    : E-mail : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>       :
    : Jabber : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>     :
    : ICQ    : 105677955              :
    :........:........................:


    dforum schrieb:
    > Hello every body,
    >
    > I'm looking for a method to set a cookies with zendFramework,
    but i'm
    > not finding anything!!!
    >
    > Do we just use php setcookies function, is there nothing more
    flexible
    > in zendframework ????
    >
    > I found Zend_Http_Cookies, but it seem that it is only to read the
    > cookies sended by a web site when you request it with
    > Zend_Http_Client($url);
    >
    > Regards
    >
    > David
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iEYEARECAAYFAkkMkaYACgkQ0HfT5Ws789ACIgCdHY67LQnsrHH4YZS0JFAi5494
    TZEAoIB/rYtPq6HkwQtUz/Nwjrsa/FRt
    =jXLZ
    -----END PGP SIGNATURE-----



Reply via email to