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.
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.
In preparing for battle I have always found that plans are useless, but planning is indispensable. -- Dwight D. Eisenhower
Evildoers! Eat my justice! And this tiny ad's justice too!