How to get cookie domain in magento?

To get cookie domain you have to put this code in your phtml file and this phtml
file was called by the page where you want to showing it.

<?php echo $cookieDomain = Mage::getModel(‘core/cookie’)->getDomain($cookieName);?>

Post A Comment

Your email address will not be published. Required fields are marked *