Alex Yeung
Alex Yeung

Reputation: 2515

jsp + php + asp.net + python in one site?

I have a question: can I mix jsp, php, asp.net and python in one site?

For example:

www.mysite.com/customer.html <-- this page is written by jsp
www.mysite.com/mycart.html <-- this page is written by php
www.mysite.com/login.html <-- this page is written by asp.net
www.mysite.com/admin.html <-- this page is written by python

I use ".html" as I don't want other know what technology I am using.

I am facing some problems:

  1. What web server can hold all these technologies?
  2. How can they share session?

Or just simply tell me this is impossible...

Thanks

Upvotes: 0

Views: 1348

Answers (4)

bennedich
bennedich

Reputation: 12377

I like your idea. With nginx you can easily redirect requests to the different applications in whatever way you prefer. When it comes to session sharing (and all kinds of data sharing) the easiest and safest way would be to communicate via a database. Problem is, you would have to implement your own session management solution in all different systems.

Upvotes: 0

Joel
Joel

Reputation: 3454

You can always generate a random key like a234feg321de32 for the session, store it into your db for each user, and send it in the GET or POST variables, then check it with a select query. This would work even if you pushed your test further and switched from one server to another.

Upvotes: 0

Dhaivat Pandya
Dhaivat Pandya

Reputation: 6536

You cannot share a session unless there is one module (for apache or something) that encompasses all of these technologies properly.

If this doesn't bother you, then, just configure your webserver to handle all of the file endings and such.

Upvotes: 1

Hubro
Hubro

Reputation: 59333

Speaking from my experience, I suppose all web servers supports these languages. You just have to install their parsers/modules and configure your web server to use them. You'd have to give your pages different suffixes though, so that your web server will know what to do with the files.

www.mysite.com/customer.jsp
www.mysite.com/mycart.php
www.mysite.com/login.aspx
www.mysite.com/admin.py

Upvotes: 0

Related Questions