What is the best solution for storing ASP.NET session variables? StateServer or SQLServer?
StateServer or SQLServer? What is the best solution for storing ASP.NET session variables? What are the pros and cons of each? Are one better then other in any particular situation? Here's some thoughts about pro's/con's. I've also added Microsoft Velocity Distributed Caching solution. Pros for InProc Fastest optional available (it's all in memory/ram) Easy to setup (nothing new required in the .config file .. i think this is the default behavior). Most people I believe use this. Cons for InProc If the web site (application pool) dies, then all session info is lost. Doesn't work in a WebFarm