title: Cannot acces Magento session on subdomain
body: <p>I have a magento shop and for testing purposes I use a subdomain</p>
  
  <blockquote>
    <p>www.example.com/shop -> shop</p>
    
    <p>test.example.com/    ->subdomain</p>
  </blockquote>
  
  <p>I am trying to access the Magento session from the subdomain with the following code (test.php)</p>
  
  <pre><code>require_once 'shop/app/Mage.php';
  umask(0);
  Mage::app();
  
  Mage::getSingleton('core/session', array('name' =&gt; 'frontend'));
  var_dump(Mage::getSingleton('customer/session')-&gt;isLoggedIn());
  </code></pre>
  
  <p>Like in this <a href="https://stackoverflow.com/questions/9982210/how-to-access-magento-customers-session-from-outside-magento">question</a> and in this <a href="https://stackoverflow.com/questions/1098871/how-to-access-magento-users-session-from-outside-magento">question</a> and following the <a href="http://www.magentocommerce.com/wiki/modules_reference/english/mage_adminhtml/system_config/edit/web#session_cookie_management_field_descriptions" rel="nofollow noreferrer">Magento Wiki</a> I set the Cookie Path to </p>
  
  <blockquote>
    <p>/</p>
  </blockquote>
  
  <p>and the Cookie Domain to </p>
  
  <blockquote>
    <p>.example.com</p>
  </blockquote>
  
  <p>Still the test.example.com/test.php returns false. Also this logs me out somehow. So when refreshing the shop in another tab, the user is logged out. When testing the same file from www.example.com/test.php everything works fine.</p>
  
  <p>What else could be the problem in my case? Any suggestions?</p>