Google News
logo
Zend framework - Interview Questions
What are the types of methods of Cookies class in the Zend framework?
In the Zend framework, there are various methods of Cookies class that are listed below :

addCookie(uri) : It is used to add a cookie into the request object of the given URI.

getCookie(cookieName, $cookieForm) : It is used to get the cookie, $cookieName available in the given URI.

fromResponse(uri) : It is used to extract cookies from the response object of the given URI.

isEmpty() : It is used to find whether the given Cookie object has any cookie or not.

reset() : It is used to clear all the cookies in the given URI.
Advertisement