title: Session Variables in Opencart
body: <p>Can someone explain where session variables are held?</p>
  
  <p>I have added some session variables in header.php in the controller, for example:</p>
  
  <pre><code>$this-&gt;session-&gt;data['day']=date("d",strtotime($row['startdate']));
  </code></pre>
  
  <p>This works when loading the site, and when I click on a product, all the variables are gone, except for the <code>[language]</code>, <code>[currency]</code> and <code>[cart]</code> which are set by Opencart.</p>
  
  <p>I guess there is another file or controller file where I set the variables, or where <code>[language]</code>, <code>[currency]</code> and <code>[cart]</code> are set but I cannot find it.</p>
  
  <p>Thanks in advance.</p>