How to differ sessions in browser-tabs?

后端 未结 21 1632
情深已故
情深已故 2020-11-22 08:48

In a web-application implemented in java using JSP and Servlets; if I store information in the user session, this information is shared from all the tabs from the same brows

21条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 09:06

    In javascript, how can I uniquely identify one browser window from another which are under the same cookiedbased sessionId

    Essentially use window.name. If its not set, set it to a unique value and use it. It will be different across tabs that belong to same session.

提交回复
热议问题