Handling session time out when ajax call to C# mvc controller not working

后端 未结 2 1189
南笙
南笙 2020-12-09 22:20

When calling a function from ajax. Program flow does not recognized the expired session i.e not redirect to the login page. Instead of that, it saves the record. I am workin

2条回答
  •  天涯浪人
    2020-12-09 22:32

    I would like to sugguest you to use StatusCode = 306. I met some problem when use 401.IIS treat 401 different from what I understand. 306 works fine for me.

    Regards.

提交回复
热议问题