Difference between "InProc" & "stateServer" mode in SessionState on ASP.NET

Wassim AZIRAR picture Wassim AZIRAR · May 25, 2010 · Viewed 23.3k times · Source

like the title shows I want to know what is the difference between "InProc" & "stateServer" mode in SessionState on ASP.NET.

Thanks

Answer

Anthony Faull picture Anthony Faull · May 25, 2010

In InProc mode, a live Session object is stored in RAM in the ASP.NET worker process (aspnet_wp.exe). It is usually the fastest, but more session data means the more memory is used on the web server, and that can affect performance.

In StateServer mode, each session is converted to XML (serialized) and stored in memory in a separate process (aspnet_state.exe). This state Server can run on another machine.

ASP.NET Session State FAQ