title: Passing PHP session id to FLEX app
body: <p>I'm developing a FLEX application which has a Java Server as back-end.</p>
  
  <p>What I need:<br>
  -The FLEX app can only be used if the user it's logged;<br>
  -The FLEX app also needs to know which user it's logged, because it will shows especific content about him;<br>
  -I need to perform authentication on every webservice call;  </p>
  
  <p>However, the webpages are being developed using <strong>PHP</strong>, as well the login system. </p>
  
  <p>After some digging, I've discovered that I can use the PHP session ID for authenticate every webservice calls, by using the php-java-bridge so both PHP and Java can share the same session.</p>
  
  <p>My problem it's that I don't know how the FLEX app can get the current PHP session ID. I know that it's possible to pass it by flashvars, but I think it's not secure.</p>
  
  <p>If someone has other solution, even not using the PHP session id, I'd really appreciate it.</p>
  
  <p>Thanks in advance.</p>