Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to open an application from some other server  RSS feed

 
rajeev naik
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My server has to open an application in another server and continue that session. i.e. when click for to open the application it has to open the session.
But while sending request to open the application i also need to send an custom http header with the url.
How can i achive this?

I tried with AJAX xmlhttp object and open the url and sent the header. The application get the header and returned the response. But didn't get how to continue the opened session.
Please help.
 
Pete Nelson
Ranch Hand
Posts: 147
Debian Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the HTTP Cookie environment, you can set the the Domain so that the cookie is passed to any host within that domain. However, I do not know that you can do the same for the HttpSession object.

If you need to pass data between servers, you may need to look at other forms of persistence rather than HttpSession. If it is a small amount of non-sensitive data, you might consider rolling your own Cookie object to hold the data. If it's a lot of data, or it's data that must remain secure, I would look towards another form of persistence, such as a database.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!