1. The session is automatically lost when it expires.
2. When web.config is modified, the system will restart and the SESSION will be lost.
3. When the Bin directory changes, the system will restart and the SESSION will be lost
(Changes here refer to creating new files, modifying file names, modifying file contents, deleting files, modifying directory names, and deleting directories) Only when creating a new directory, the system will not restart,
4. The entire application directory is monitored by .net. Once there are changes, the SESSION will be lost after restarting.
(Change here refers to modifying the directory name and deleting the directory)
5. When the process user name, for example: Network Service, changes the permissions, it will also cause a restart. SESSION lost
Note that if the system is restarted, Application, Cache, etc. will also be lost
The above is the detailed content of Analyze several situations of Asp.net 2.0 Session loss. For more information, please follow other related articles on the PHP Chinese website!