class Mymodule_Product_Block_Adminhtml_Product extends Mage_Adminhtml_Block_Widget_Grid_Container {
public function __construct() {
$this->_controller = "adminhtml_product";
$this->_blockGroup = "product";
$this->_headerText = Mage::helper("product")->__("Product Manager");
$this->_addButtonLabel = Mage::helper("product")->__("Add New Product");
$form_key = 123;
Mage::getSingleton('core/session')->setFormKeyCustom($form_key);
$this->_addButton('import', array(
'label' => Mage::helper('product')->__('Import'),
'onclick' => "uploadDoc('" . $this->getBaseUrl() . "product/csvupload/index/key/" . $form_key . "');",
'class' => 'add',
'after_html' => '',
));
parent::__construct();
}
}
Why I am not able to get that session in a frontcontroller action ?? I am getting blank Mage::getSingleton('core/session')->getFormKeyCustom();