I have set the array in magento session in one of the template file using following code
Mage::getSingleton('core/session')->setData('filterarray',$filtercatarray);
I'm getting correct value in same template file but when i'm calling same session using following code in another template file i'm getting old session values.
$session = Mage::getSingleton("core/session", array("name"=>"frontend"));
$catarray = $session->getData('filterarray');
When i'm refreshing the page i'm getting update session value. why i'm not getting update value in first call in another template file?