How magento save value in session?

if you want to save "Test value" in "SessionMessage" variable

$sessionValue = 'Test Value';
Mage::getSingleton('core/session')->setSessionMessage($inputMessage);

If you want to read value form "SessionMessage"

$outputMessage = Mage::getSingleton('core/session')->getSessionMessage();
echo $this->__($outputMessage);

Nikunj K

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.