Get Current Session Value in JavaScript?

后端 未结 11 1581
深忆病人
深忆病人 2021-02-05 01:10

I have a scenario where I open my web application in a browser but in two separate tabs.

In one tab I signed out from the application and as a result the all session val

11条回答
  •  爱一瞬间的悲伤
    2021-02-05 01:32

    Take hidden field with id or class and value with session and get it in javascript.

    Javascript var session = $('#session').val(); //get by jQuery

提交回复
热议问题