开发者

working with cookie in zend framework

开发者 https://www.devze.com 2023-03-22 13:12 出处:网络
How can I write a cookie for user_name and pas开发者_开发问答sword and read it back if the cookie is already there in zend framework.I read the manual but not getting it. I\'m really stuck, plz help.

How can I write a cookie for user_name and pas开发者_开发问答sword and read it back if the cookie is already there in zend framework.I read the manual but not getting it. I'm really stuck, plz help.

Thanks


Zend_Http_Cookie is not a good thing for setting/getting normal cookies. Read about it here php setcookie vs Zend_Http_Cookie and Zend Framework cookie management. There is nothing wrong with using native PHP setcookie() for setting and using the superglobal array $_COOKIE for getting cookies.

0

精彩评论

暂无评论...
验证码 换一张
取 消