Session State Mode Comparison

  • Thread starter Thread starter Ross Culver
  • Start date Start date
As anything else this is always a trade off. I would suggest to use inproc
until you know why you would want another one (load balancing, surviving to
restarts etc...).
 
InProc is best when:
1) You don't have a lot of simultaneous users (1000+)
2) You don't have a server farm
3) You don't have a lot of data to store per user

Out of Proc (StateServer) is next best when you exceed the above
limitations, but:
1) Your "session stated" data is not that important to need SQL
persistence.
2) You don't mind losing the data if the server restarts
3) You need faster performance than SQL Server gives you


Out of Proc (SQL) is best choice for out of Proc because:
1) SQL Persistence gives you reliable storage


Keep in mind that the performance goes from (best to worst)
InProc->StateServer->SQL



Steve C.
MCAD,MCSE,MCP+I,CNE,CNA,CCNA
 
Peter,

Thanks for the links. Even after placing the <Serializable()> tag in front
of every 'Partial Class' statements on every aspx page in my site, I still
get the standard Unable to serialize the session state' error message when
loading ASP Configuration Administrator. I've also already run the
aspnet_regsql.exe, InstallSqlState.sql and aspnet_regiis.

What else do I need to do?

Ross
 
Back
Top