Java - How to share the session between two or more Web Application?

前端 未结 2 1770

I have two web Applications. I will login in to one Web Application and will navigate to another by links or redirection from the first Application. Lastly after completing some

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-06 02:25

    When you have to make a call to app2 from app1, pass all necessary information via the request object (as a request params) then app2 can read and create the session there (perhaps a servlet/filter can be used for this).

    you can share a session between the same application (app1 and app1) across machines using clustering.

提交回复
热议问题