Session changes done in application_Error rolled back after redirect

前端 未结 5 1550
感情败类
感情败类 2021-01-26 05:01

I have an asp.net application and I am trying to handle custom exception using Application_Error. It works nicely but I have new requirement to set the error data in Session obj

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-26 05:54

    Check this, the problem is with the redirect call.

    Don't redirect after setting a Session variable (or do it right)

提交回复
热议问题