报错信息:会话状态在此上下文中不可用

protected void Application_Error(object sender, EventArgs e)

 {

//以此判断是否可用Session

bool HadInitSession = (sender as HttpApplication).Context.Session == null ? false : true;

//

.......

 

}

相关文章:

  • 2021-10-08
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2021-05-22
  • 2022-12-23
  • 2021-04-24
  • 2021-11-28
  • 2021-11-17
  • 2022-01-28
  • 2021-11-09
相关资源
相似解决方案