title: Why doesn't my CakePHP flash message appear?
body: <p><strong>Background:</strong> I'm new to CakePHP.  I have a small test site (mostly composted of static views and a contact form at the moment) to play with while I learn.  Everything worked fine on localhost (Apache on Ubuntu) so I deployed it to a shared hosting account (provided by Lunarpages).  I moved the /cake folder out of the normal directory structure (so I could use it for multiple apps) and I reconfigured my webroot's index.php paths accordingly.</p>
  <p><strong>Problems:</strong></p>
  <ol>
  <li><p><code>setFlash</code> messages do not get displayed.  Even making a simple view that does nothing other than <code>$this-&gt;Session-&gt;setFlash('message');</code>.  I don't get any error message, the flash just doesn't get displayed</p>
  </li>
  <li><p>Redirects don't work.  For instance, after the contact form is completed I want to <code>$this-&gt;redirect( array( 'action' =&gt; 'success' ), null, true);</code> but the server throws an error:</p>
  <blockquote>
  <p>Warning (2): Cannot modify header information - headers already sent by (output started at /routetoapp/config/routes.php:40) [CORE/cake/libs/controller/controller.php, line 742]</p>
  </blockquote>
  </li>
  </ol>
  <p>Everything else seems to work just as it did on localhost - URL rewriting, component loading, model validation.  I don't know if my problems are related or separate issues</p>
  <p><strong>Troubleshooting so far:</strong></p>
  <ol>
  <li>I've tried both 'cake' and 'php' for <code>Configure::write('Session.save', 'val');</code> but neither made a difference.</li>
  <li>My app/tmp folder is writeable.</li>
  <li>My layout template has the correct code for displaying flash messages.  (The exact same M, V, C, and Layout objects display the expected flash on localhost)</li>
  </ol>
  <p>I assume I'm missing something simple, but I'm new to this framework so I'm not sure where else to look.</p>