• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Integrating JSP and PHP based web apps

 
Ranch Hand
Posts: 2373
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
I'm not sure if I approve of this interruption. But this tiny ad checks out:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!