The ASP. NET State service is used to manage the session, and normally the session is in the IIS process (which can be understood in the server's memory), and the session is automatically emptied when IIS restarts or the program pool recycles.
The ASP. NET State Service services if started can solve this problem, it will generate a aspnet_state.exe process, this is the session information process.
As long as this process is in, even if the restart of IIS, the site session will not be lost.
A description of the session mode in the Web. config file:
Session state uses the custom data store to store session state information.
The session is in the state of the ASP. NET worker process.
Session state is disabled.
Session state uses an out-of-process SQL Server database to store state information.
Session state uses the out-of-process ASP. NET State Service to store state information.
----------------------
The ASP. NET State service is only available when mode= ' StateServer ' is selected, and can be turned off in other states.
ASP. NET State Service services