see
PRB: Session Data Is Lost When You Use ASP.NET InProc Session State Mode
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q324772suggest you use State Server or SQL Server as the session store

解决方案 »

  1.   

    程序重新编译后session将会丢失
      

  2.   

    see
    PRB: Session Data Is Lost When You Use ASP.NET InProc Session State Mode
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;q324772suggest you use State Server or SQL Server as the session store
      

  3.   

    你最好试试改变session 存储方式,改成在windows进程中存储。
    在web.config中的sessionstate中改
    将mode 改为stateserver就可以了!