apache - Tomcat Sharing cookie between two application on same server with different host name -


i have 2 applications running on single tomcat instance.

both applications use apache trickery mask ip host name

rather that

http://123.123.123.123/appone  http://123.123.123.123/apptwo 

it

http://appone.com/appone http://apptwo.com/apptwo 

i want share common information between 2 applications browser assuming different.

i have set

cookie.setdomain("123.123.123.123") cookie.setpath("/") 

both

request.getlocalname() request.getlocaladdr() 

return appone.com

is possible this?

unfortunately, can not share information between 2 applications via cookie in deployment. browser sees have 2 applications in different domains: appone.com , apptwo.com. design never send cookie 1 domain another.

you can share data between applications via database.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -