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

<?php 

 Mage::getModel('core/cookie')->set($name, $value, $period, $path, $domain, $secure, $httponly);
/**
 * get cookie with a specific name
 * $name = name of the cookie
 */
 Mage::getModel('core/cookie')->get($name);
 /**
 * get all cookies as an array
 */
 Mage::getModel('core/cookie')->get();
 /**
 * 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);

?>