修改配置后,肯定要重新重新load过配置。你需要重新启动应用

解决方案 »

  1.   

    asp.net 应用程序会监控web.config 文件的更改的。如果该文件被更改,会自动重新编译整个应用程序。所以 session 会丢失。正常现象
      

  2.   

    如何合理操作找回丢失的session???
      

  3.   

    SessionState timeout=20  ???
      

  4.   

    >>如何合理操作找回丢失的session???找不回来了,重来一次!
      

  5.   

    yes, you shouldn't change web.config, global.asax and anything in bin directory, because anychange like that will cause the web application be reloadedif your need change some configuation from time to time, consider to use your own xml-based configuration instead of web.config