IIS6 under win2003server is set by default to automatically recycle workers running in the default utilization pool after more than 20 hours, resulting in session loss during the retention process. Data such as Session and Application are retained by default in
IIS6 under win2003 server is set by default to automatically recycle workers running in the default pool after over 20 hours, resulting in session loss during the retention process.
Because Session, Application, and other data are retained by default in the process of the worker running the Web Application, if the worker process is recycled, it will cause loss.
Solution:
Modify the configuration and set it to automatically recycle the worker process from time to time. for example, set it to automatically recycle the worker process when it exceeds 60% of the occupied physical memory.
This process. The application uses the program pool by default to ensure that multiple exploitation programs are isolated from each other, so that the crash of one exploitation program does not affect other Web exploitation programs. It also allows an independent exploitation program to run under a specified user account privilege.
If the StateServer method or SQL Server database method is used to retain the Session, this setting is not affected.
Possible cause 2:
The system must run in a load balancing Web environment, and the system configuration file web. the Session status in config is set to InProc (that is, the Session status is stored locally), which leads to the situation where the Session often times out when the number of user visits is large. The reason for this is that the user accesses the WEB application system through the load balancing IP address. at a certain time, the Session status of a Session is retained on a server, however, the Session status of the Session is not retained in other WEB front-end servers. as the concurrency increases, the load balancing will act as a route to visit idle servers at any time, the idle server does not have the Session state reserved previously.
Solution:
1. when you run ASP. when using the NET Web application, you must apply the SqlServer or StateServer Session state mode. in the project, we did not select the SqlServer mode to store the Session state based on performance considerations, instead, select a SessionStateServer server to view the Session status of the user. We need to set the following in the system configuration file web. config:
Add another item
2. we also need to start ASP on the SessionStateServer server. NET State Service, specific settings: Control Panel> governance tools> Services> ASP. NET State Service, set it to active startup.
3. Microsoft "Internet information service" (IIS) settings for each front-end WEB service
To protect the session status between different Web servers in the Web Farm, Microsoft "Internet information service" (IIS) configures the path of the Web site exploitation program in the database (for example, \ LM \ W3SVC \ 2) and all Web servers in the Web field must be the same. The case sensitivity must also be the same, because the use of program paths is case sensitive. On a Web server, the instance ID of the Web site that carries ASP. NET exploitation programs may be 2 (where the exploitation program path is \ LM \ W3SVC \ 2 ). On another Web server, the instance ID of the Web site may be 3 (where the path of the application is \ LM \ W3SVC \ 3 ). Therefore, the path of exploitation programs between Web servers in the Web field is different. We must make the instance ID of the Web site the same. You can retain a WEB configuration information as a file in IIS. The IIS configuration of other Web servers can come from this file.