コード例 #1
0
 /**
  * Set a cookie for name and value with a 24 hours life time
  * @param String $cookieName
  * @param String $cookieValue
  */
 private function setChronicleSeenCookie($cookieName, $cookieValue)
 {
     $this->getResponse()->setRawHeader(new Zend_Http_Header_SetCookie($cookieName, $cookieValue, time() + 3600 * 24, '/', HTTPHelper::getHostBase(), false, true));
 }