我遇到过
1、session 有效期太短
2、有时在客户操作是确信重新编译过

解决方案 »

  1.   

    1. check the EventViewer to make sure your web app didn't restart, otherwise, you have to modify <httpRuntime> section of web.config or machine.config to increase those runtime parameters2. don't modify global.asax, web.config, or anything in bin directory (for example, don't put your ACCESS database in bin directory)3. any Anti-virus software  running? see
    PRB: Session Variables Are Lost Intermittently in ASP.NET Applications
    (Q316148)
    http://support.microsoft.com/default.aspx?scid=kb;EN-CA;q316148&GSSNB=1
      

  2.   

    感觉问题出在多人并发访问上
    一个人访问似乎不出现问题
    Session是不丢失的刚才看了
    (Q316148)
    http://support.microsoft.com/default.aspx?scid=kb;EN-CA;q316148&GSSNB=1反病毒软件罪挥祸首?
    单人访问不scan webconfig?
    多人并发 就scan?
    不会吧?明天看看去情况
    大家 还有什么提醒我需要注意的地方啊?
      

  3.   

    把SessionState的mode设为StateServer,然后在管理工具-->服务,把Asp.net State Services服务启动
      

  4.   

    是否在运行期间有修改BIN目录下内容? 很多SESSION的问题都是由于他引起的。
      

  5.   

    问题解决了
    是因为多cpu的问题
    谢谢大家