get shopping cart session in magento

While working on Cart page or checkout page, if you want to get the cart session value then You have to use this code in magento

$session= Mage::getSingleton('checkout/session');
DOWNLOAD SOLUTION HERE