ASP.NET: Access Session variable in global.asax

前端 未结 3 757
长发绾君心
长发绾君心 2021-01-18 01:34

I have an ASP.NET application and in the Global.asax \' Application Error Event, I am calling a method to trace/log the error. I want to use the session variable content her

3条回答
  •  天命终不由人
    2021-01-18 02:20

    I think applicaiton error is specific for the whole application and a session is specific for the user. Maybe you can throw your own Exception where you save the information from the session inside your exception.

提交回复
热议问题