title: CakePHP: Undefined variable: session
body: <p>I get the following errors on my app:</p>
  
  <pre><code>Notice (8): Undefined variable: session [APP/views/layouts/admin_default.ctp, line 19]
  Fatal error: Call to a member function flash() on a non-object in /Users/cameron/Sites/crm/app/views/layouts/admin_default.ctp on line 19
  </code></pre>
  
  <p>Line 19 being: <code>&lt;?php echo $session-&gt;flash(); ?&gt;</code></p>
  
  <p>Any ideas what the problem is? I have included the Session component in the AppController so why is it complaining about it?</p>
  
  <p>Cheers</p>