title: How to access Magento user's session from outside Magento?
body: <p>Im trying to access the Magento customer session in another part of my website.</p>
  
  <pre><code>domain.com/shop/ &lt;- Magento
  domain.com/test.php
  </code></pre>
  
  <p>The shop itself works like a charm, however im trying to determine within test.php if a customer is logged in, so I can display his name with a link to his cart.</p>
  
  <p>Contents of <strong>test.php</strong> so far:</p>
  
  <pre><code>&lt;?php
  require_once dirname(__FILE__).'/shop/app/Mage.php';
  umask(0);
  Mage::app('default');
  Mage::getSingleton('core/session', array('name' =&gt; 'frontend'));
  var_dump(Mage::getSingleton('customer/session')-&gt;isLoggedIn());
  ?&gt;
  </code></pre>
  
  <p>I keep getting <strong>bool(false)</strong> returned. I'm logged into Magento at domain.com/shop/ so ‘true’ is expected.</p>
  
  <p>Am I forgetting something? </p>