Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


how can i set multiple cookies in zend framework 1 12


how can i set multiple cookies in zend framework 1 12  using -'php,arrays,zend-framework,cookies'

All right, so it works for two cookies. But what happens if I have to set four of them?
How can I do that?
This is not a solution. Just an example of something that doesn't work:

    $cookieStreetNumber = new Zend_Http_Header_SetCookie('user_street_number', $cookieStreetNumber, NULL ,'/');
    $cookieGender = new Zend_Http_Header_SetCookie('user_gender', $cookieGender, NULL ,'/');
    $cookieBirthdate = new Zend_Http_Header_SetCookie('user_birthdate', $cookieBirthdate, NULL ,'/');
    $cookiePostalCode = new Zend_Http_Header_SetCookie('user_postalcode', $cookiePostalCode, NULL ,'/');
    $headerLine = cookieStreetNumber->toStringMultipleHeaders($cookieGender, $cookiePostalCode, $cookieBirthdate);
    $this->getResponse()->setRawHeader($headerLine);


And I have asked here.
    

asked Oct 23, 2015 by kotmus2002
0 votes
2 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...