title: Sending credentials from PHP web application to Java web application
body: <p>I have a web PHP web application that has a link to a java web application.  The php application has a login page, and a link to the the java application, but not every user has permission to access the java web application.  What I was trying to do is send user credentials from the php application to the java application, and then the java application checks the credentials and if correct logs in the user.  I was thinking of using http headers to do this. </p>
  
  <p>So my question is what is how to send user credentials from a PHP application to a java application?</p>
  
  <p>If it helps I am using a Java web framework called Vaadin.</p>