I'm trying to set a cookie and immediately get it in a function:
Mage::getSingleton('core/cookie')->set('productLanded', $product_sku, 86400, '/'); $this->product_landed = Mage::getSingleton('core/cookie')->get('productLanded');
I'm not able to print on a page the value of
$this->product_landed as soon I call the function, I always need a page refresh. Any clue?