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
Post a Comment