I need to create function in magento for set session data and getSession data ... I created on e but this is not working ..
public function mySession($data){
$_session = Mage::getModel('core/session');
$_session->set($data);
}
how can we write session function for set and gat