Get Current Session Value in JavaScript?

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

    The way i resolved was, i have written a function in controller and accessed it via ajax on jquery click event

    First of all i want to thank @Stefano Altieri for giving me an idea of how to implement the above scenario,you are absolutely right we cannot access current session value from clientside when the session expires.

    Also i would like to say that proper reading of question will help us to answer the question carefully.

提交回复
热议问题