Could anyone be kind and explain what is the good practice for setting cookies in Magento with:
Mage::getModel(‘core/cookie’)->set($name, $value, $period, $path, $domain, $secure,$httponly);
I am especially interested what the $secure
and $httponly
do.
Best Answer
Magento uses the default php setcookie function.
See /app/code/core/Mage/Core/Model/Cookie.php