title: Cakephp Session lost in Flash player
body: <p>Just want to know if anyone have the same problem.</p>
  
  <p>The website need to login to perform certain task. We use stock Auth component to do the job.</p>
  
  <p>Everything is fine until it hits an interface which build in Flash. Talking to Amf seems fine. But when the Flash player try to talk to other controller - got redirect because the session in not presented.</p>
  
  <p>So basically when a user login - I need to somehow find a way to login the Flash player in as well.</p>
  
  <hr>
  
  <p>ADDITION:
  This only solve half of the problem.</p>
  
  <p>Backtrack a little bit. How the Auth components evaluate the requester? </p>
  
  <p>If the Session.checkAgent is true. They check if its the last one. So Flash has no chance they have a different Agent string.</p>
  
  <p>OK now - Auth check them out - what? The Session cookie they store earlier ... so fail again.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Thanks for all the answers.</p>
  
  <p>I have tried the suggested solution. Only one problem.</p>
  
  <p>I am using Amf (as Cakephp Plugins) when I tried to test if the $this->params['actions'] is start with amf - it works sometime doesn't work sometime. Looking at "Charles" I can see they all call to the amf controller. Very puzzling ....</p>