Is there is any appropriate solution to clear server side session on client side?

后端 未结 5 1094
星月不相逢
星月不相逢 2021-01-26 11:55

Is there any appropriate method to clear a server side session on client side. I use java script to clear a session, but when ever a page is redirected then server side session

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-26 12:30

    Hello you can try with this code

    function Clear()
    {
        location.href="logout.aspx";
    }
    

    In code behind file logout.aspx.cs

      Session.Clear();
    

提交回复
热议问题