title: set phpsessid cookie after first load
body: <p>I'm making shared cart in opencart on two frontends with diferrent domains.</p>
  
  <p>I share the phpsessid to achieve that.</p>
  
  <h1>Idea</h1>
  
  <p>I pick some stuff on front-end 1 (abc.com), put it in the cart and then go to front-end 2 (xyz.com) go into the cart and pay there for example.</p>
  
  <p>The problem is after the first load of the second front-end I see empty cart and i have to reload the page to change that. I see through my web developer that the <strong><code>phpsessid</code></strong> is set but is not accessible through <code>$_COOKIE['PHPSESSID']</code> variable, but as i sad after reloading the page it works. Is there some workaround to make it work on first time i load the page?</p>
  
  <p>Now i have set to reload the page after first visit, but i think it's quite filthy solution..</p>