Client side sessions

后端 未结 6 1661
灰色年华
灰色年华 2020-12-17 00:32

I want the clients of several related web apps to hold their own authentication state. This improves scalability, because no session replication between cluster nodes is nee

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-17 01:15

    You can avoid duplication of data in a clustered environment by using a state server - a server that is well known by all the nodes in the clusters and maintains the session data for all the users. Every time a user performs a request, it send a cookie with session id to the applications server; this one should retrieve the session from the state server. This is possible for asp.net development, but I'm not sure how easy Java supports this approach.

提交回复
热议问题