How to differ sessions in browser-tabs?

后端 未结 21 1400
情深已故
情深已故 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:16

    you will need to do

    1- store a cookie for accounts list

    2- optional store a cookie for default one

    3- store for each account with it's index like acc1, acc2

    4- put in the url something represent the index of accounts and if not you will select the default one like google mail domain.com/0/some-url >> 0 here represent the index of account also you may need to know how to use urlwrite

    5- when select a cookie, select it according to your urlpath represent the account index

    Regards

提交回复
热议问题