title: How to config Codeigniter shopping cart to work on subdomains
body: <p>I'm working on a Multi Site installation of PyroCMS 1.3.2. I have create 3 sites:</p>
  
  <p>The Default site is on my primary domain for the Spanish version, and I have 2 other sites for Italian and English versions of the site on a corresponding subdomain for each one like this:</p>
  
  <p><a href="http://arbioperu.org" rel="nofollow">http://arbioperu.org</a> (spanish)</p>
  
  <p><a href="http://english.arbioperu.org" rel="nofollow">http://english.arbioperu.org</a></p>
  
  <p>I have create a PyroCMS Module with Codeigniter Shopping Cart Class wich works fine on my primary domain but dosent work on the subdomain sites. nothing is added to the cart.</p>
  
  <p>I think it my be a problem with the cookies setup:</p>
  
  <pre><code>$config['cookie_domain'] = (isset($_SERVER['SERVER_NAME']) AND $_SERVER['SERVER_NAME'] == 'localhost') ? '' : preg_replace('/^www\./', '', $_SERVER['SERVER_NAME']);
  </code></pre>
  
  <p>Thanks for your advice</p>