用户登录时建立Session: Session.Add("CURRENTUSER",userInfo)
userInfo为保存用户信息的一个类
当用户执行程序将应用程序中的一个文件夹aaaaa改名为bbbbb之后,Session["CURRENTUSER"]丢失请高手们解释一下这是为什么,同时给个解决办法
userInfo为保存用户信息的一个类
当用户执行程序将应用程序中的一个文件夹aaaaa改名为bbbbb之后,Session["CURRENTUSER"]丢失请高手们解释一下这是为什么,同时给个解决办法
把Server.GetLastError().Message写入一个文件看看。
For v1.1
--------
The list for v1.1 is the same as v1, with the following new conditions: - User code called HttpRuntime.UnloadAppDomain - Any directory under the web application folder is renamed -------------------------------------------------------if session variables are important under such situations, consider to use out-of-process session store like Session State Server or SQL Server