Where is the HttpSession data stored?

前端 未结 1 1243
我在风中等你
我在风中等你 2021-01-06 00:40

HttpSession is a high level interface built on top of cookies and url-rewriting, which means that there is only a session ID is stored in client side and the da

相关标签:
1条回答
  • 2021-01-06 01:16

    It's up to the server where to store session data; the ones I'm familiar with allow some level of configuration as to where (disk, DB, memory, ...) session data is stored.

    Different clients shouldn't be working on the same session data--session data is per-client. That said, a single client (like a web browser) could have multiple windows or tabs open, and yes, that can cause issues.

    Clustering adds a layer of complexity/headache as session data is shared between servers.

    0 讨论(0)
提交回复
热议问题