views:

114

answers:

2

Hey,

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

Thanks

+2  A: 

This MSDN article covers SessionState in detail.

etc
A: 

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

Anthony Faull
@Murph Quite right. I've rewritten my answer
Anthony Faull
Cool - deleted my comment - ok (and I know its too late) the key difference between in-proc and anything else is that in-proc is tied to a single instance - fast but not scaleable - whereas the others trade performance for scaleability as multiple instances of the same web application (on one or more servers) can share the same state.
Murph