How can I retrieve cookies for webserver A when my project is deployed on webserver B?

Posted by medopal on Stack Overflow See other posts from Stack Overflow or by medopal
Published on 2010-06-13T06:27:23Z Indexed on 2010/06/13 6:32 UTC
Read the original article Hit count: 202

Filed under:
|
|

The project is multiple modules, each of them is deployed to a separate webserver. All of them on the same mainframe. (same IP address)

I have a main menu where I login and then list all the available modules on all servers. From here I can click and go to any of them modules.

I send cookies in the response (when logging in, say Server A), then on Server B (one of the modules) when I want to go back to the main menu, I check the cookies to see if the user is logged in.

The problem is, Server B isn't seeing cookies generated by Server A. So each time I return to main menu, the user will be logged out.

Is there anyway to store cookies to be used by multiple virtual webservers (on same IP) or any other idea?

© Stack Overflow or respective owner

Related posts about java

Related posts about servlets