Reputation: 2515
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:
Or just simply tell me this is impossible...
Thanks
Upvotes: 0
Views: 1348
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
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
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
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