Get Current Session Value in JavaScript?

后端 未结 11 1561
深忆病人
深忆病人 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:45

    The session is a server side thing, you cannot access it using jQuery. You can write an Http handler (that will share the sessionid if any) and return the value from there using $.ajax.

提交回复
热议问题