title: CakePHP keep session from main domain across to a subdomain
body: <p>I am working with Cakephp and I have an issue maintaining session across subdomains. My problem is as follows:</p>
  
  <ul>
  <li>Users login on 'localhost/login'</li>
  <li>If authenticated they are redirected to 'customer.localhost/home'.</li>
  </ul>
  
  <p>Currently Cake is creating a cookie for each domain ie localhost and customer.localhost.
  This means that I cannot keep the session working for the user. Is there a way to make all cookies domain fixed to the parent domain with the goal of keeping the session working across subdomains?</p>
  
  <p>I have tried entering this in my bootstrap but it has no effect:
  ini_set('session.cookie_domain', '.localhost');</p>
  
  <p>If you think this cannot be done please feel free to let me  know so that I can move on from this frustrating problem.</p>
  
  <p>Many thanks,</p>
  
  <p>kSeudo</p>