Redirect website !

I am looking at a solution that will allow people to use the product that I have developed, using their proprietary website so that the clients of propriety website owner will have a feeling of working on the same website.

Let me explain,

Suppose I have developed a flight ticket booking application, which will allow people to log-in to my  website say www.mybookingwebsite.com and book tickets online. Now I am approached by travel agent that wants to use my booking engine to serve his clients but through his website. So he has a website www.travelagent.com (hypothetical).

I want to enable users of www.travelagent.com to login to www.travelagent.com and book tickets. Once they log-in they should be redirected to www.mybookingwebsite.com and will use the UI of www.mybookingwebsite.com and when they logout after booking, they will be redirected to www.travelagent.com .

Some points that I need to clarify,

1.      I am aware that this can be achieved by API integration, however I would like to avoid that if possible.
2.      The URL in the address bar should not have any reference to www.mybookingwebsite.com , and it should always show www.travelagent.com/abc.php.
3.      The booking engine is developed using PHP and MySQL

Looking forward to the solution. Thank you.
JsandeepAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
... would like to avoid that [API integration] if possible.
Can you please tell us why you would want to avoid API integration?  It's the technically correct way to create web services.  

The part about having a client log into one web site and secretly redirect their requests, using URL cloaking to trick them into thinking they are still on the original site, well, that feels deceitful to me.  I think many modern browsers will not allow this to happen because it represents a security exposure.  There may be cross-platform cookie issues that would complicate the application.  And there can be no assurance that the clients will "logout" after booking.  Your site will show up in the browser history.  

Executive summary: This feels like a very bad idea and I recommend against it.  Just build the API.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David Johnson, CD, MVPOwnerCommented:
You could write it like Joomla/Wordpress work common code base and have a separate database for the booking data. That or use an API where they pull data from your site only. Otherwise you get into cross site scripting problems.
Jason C. LevineDon't talk to me.Commented:
Just use the API.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.