Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Integrating JSP and PHP based web apps

 
Ranch Hand
Posts: 2376
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: 2376
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?
 
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic