title: How to add product to cart without customer session(as a guest user) in magento, programatically?
body: <p>I want to add items to cart from my  magento module. so i used the below code with the session.</p>
  
  <pre><code>$customerId=108;
  $customer=getModel('customer/customer')-&gt;load($customerId);
  
  $storeIds = Mage::app()-&gt;getWebsite(1)-&gt;getStoreIds();
  $quote = Mage::getModel('sales/quote')
                -&gt;setSharedStoreIds($storeIds)
                -&gt;loadByCustomer($customer);    
  if($quote)
  {
     $collection = $quote-&gt;getItemsCollection(false);
     if ($collection-&gt;count() &gt; 0)
     {
        foreach( $collection as $item )
        {
           Mage::log($item-&gt;getQty());
        }      
     }
  }
  </code></pre>
  
  <p>Now i want to  do the same without the session for guest user. I searched for the solution but no luck, Is there any way in magento to do this?
  Thanks</p>