Five situations may cause Session loss and five sessions
1. Custom loss of Session expiration.
2. The SESSION will be lost when the web. config system is modified and restarted.
3. When the Bin directory changes, the system will restart the SESSION and the SESSION will be lost (this change refers to creating a new file, modifying the file name, modifying the file content, deleting the file, modifying the directory name, and deleting the directory) the system does not restart when a new directory is created,
4. The entire application directory is monitored by. net, and the restart SESSION will be lost once there is a change. (The change here refers to modifying the directory name and deleting the Directory)
5. When the process user name, for example, "Network Service", changes its permissions, the process restarts. SESSION loss
Note: If the system is restarted, Application and Cache will also be lost.