How can I retrieve cookies for webserver A when my project is deployed on webserver B?
- by medopal
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?