Hello All,
I have a PHP script which creates and opens a normal TCP/IP socket (socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) and then does some reading and writing to it. Nothing unusual so far.
My problem: I would like the script to somehow pass the open socket to a Java applet, so the applet can continue using the same socket.
The idea is that the PHP script will do user authentication to a 3rd party server (Jabberd), and then the applet will do the rest of the conversation with the server.
I can't simply pass the password to the applet as a GET, POST or other parameter, for security reasons (HTTPS is not used). And I don't want to ask the password twice from the user - once when entering the website and once when starting the applet.
Any suggestions and ideas are greatly welcome. Thank you!
Best regards,
Sebastian Paul Avarvarei