I am new to zend framework. I wrote this code to set a cookie on my site.
public function setCookie($data){ $email_cookie = new Zend_Http_Cookie('user_email_id', $data['user_email_id'], $_SERVER['HTTP_HOST'], '', FALSE); $pass_cookie = new Zend_Http_Cookie('user_password', $data['user_password'], $_SERVER['HTTP_HOST'], '', FALSE); $cookie_jar = new Zend_Http_CookieJar(); $cookie_jar->addCookie($email_cookie); $cookie_jar->addCookie($pass_cookie); }
I donβt even know, having written this code, is my cookie set or not? Now if I want to get a cookie, how can I do this?
source share