开发者

working with cookie in zend framework

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜