title: accessing session data
body: <p>I am setting a custom session in the <code>catalog/controller/checkout/cart.php</code> controller. All it does, it checks if a value is set or not.</p>
  
  <pre><code>if (isset($this-&gt;request-&gt;post['no_tax']) &amp;&amp; $this-&gt;request-&gt;post['no_tax'] == '1') 
  {
     $this-&gt;session-&gt;data['no_tax'] = true;
  } 
  elseif (isset($this-&gt;request-&gt;post['no_tax']) &amp;&amp; $this-&gt;request-&gt;post['no_tax'] === '0') 
  {
     unset($this-&gt;session-&gt;data['no_tax']);
  }
  </code></pre>
  
  <p>I can then access this in the <code>catalog/model/shipping/totalbased.php</code> model file,</p>
  
  <pre><code>isset($this-&gt;session-&gt;data['no_tax'])
  </code></pre>
  
  <p>The problem is, I need to send additioanl information in the order to the admin, which is done in the <code>catalog/model/checkout/order.php</code></p>
  
  <p>I've done a check in there:</p>
  
  <pre><code>if(isset($this-&gt;session-&gt;data['no_tax']) )
  {
     //do something
  }
  $mail-&gt;send();
  </code></pre>
  
  <p>The do something, simply adds a PDF. The problem is, the PDF isn't attached.</p>
  
  <p>In the error.txt, I get: <code>2012-05-14 14:42:11 - PHP Notice:  Undefined index:  no_tax in /var/www/vhosts/site.com/httpdocs/catalog/order.php</code></p>
  
  <p>Can I access the session this way?</p>
  
  <p>Thanks</p>