Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Thanks

like image 414
Wassim AZIRAR Avatar asked Oct 22 '25 11:10

Wassim AZIRAR


1 Answers

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

like image 70
Anthony Faull Avatar answered Oct 24 '25 18:10

Anthony Faull



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!