I got the responsibility to find out and analyze the alternative solutions for integrating a JSP+Servlets+XML based web application and a PHP+MySQL based project management web application both developed in-house. One of the key requirements are to be able to use a single sign-in to use the both web application or in other words when we provide the same look and feel to both the web apps, the visitor should find it a single web site. I think XML is a good candidate for sharing data and session state between thew two apps. Your additional comments as well as other alternatives will open up my eyes. So I am :roll:
Single Signon for this case can be very simpe. Both Technologies support reading and setting Cookies, Quick easy decision making and forwarding the request to a different URL. Knowing this, you can develop a Single signon server which sets a Stateless Cookie which is timed for say an hour. Both apps, check the Cookie with each request made and renews the Time for another hour if present. If ever a request is made to either without the Cookie, forward the request to the Single Signon server for login.
Thank you very much Carl. This solves the problem within a minute. However, I was planning to exhange some java vectors or PHP arrays between these two apps. In that case, data serialization/desirialization to flat file or XML may be the way to transfer data. Anyhting else?