Magento Cookies

Magento Cookies : one of key feature of magento that helps to manage frontend and admin section

Here is code to create , edit or delete cookies


 Mage::getModel('core/cookie')->set($name, $value, $period, $path, $domain, $secure, $httponly);
 * get cookie with a specific name
 * $name = name of the cookie
 * get all cookies as an array
 * delete/remove cookie
 * $name is mandatory; other parameters are optional and cen be set as null
 Mage::getModel('core/cookie')->delete($name, $path, $domain, $secure, $httponly);