title: Changing ASP.NET InProc session state mode into State Server or SQL Server State
body: <p>First, I am new to Web app programming. I come from Desktop apps (WinForms &amp; WPF).
  Recently I have been assigned a project that was made in the past by ohter people. This project is done in ASP.NET MVC and it uses an InProc session state mode.</p>
  
  <p>Now, I want to build a web gardening, that is, use multiple worker process for the application pool. I have googled and I have discovered that InProc session does not work with web gardening because each worker process within app pool uses its own session state. So I am planning to switch it into another session state mode such as State Server or SQL Server. </p>
  
  <p>Now I have a doubt. Apart from changing session state mode in Web.config:</p>
  
  <pre><code>&lt;configuration&gt;  
    &lt;system.web&gt;      
      &lt;sessionState mode="InProc" timeout="25"&gt;&lt;/sessionState&gt;  
    &lt;/system.web&gt;  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>... Do I need to do some extra work? for example reprogramming the ASP.NET MVC app, configuration or some other things in order it to work?</p>
  
  <p>Below I share some interesting links:</p>
  
  <ul>
  <li><a href="https://www.codeproject.com/Articles/43187/How-Do-I-Setup-an-ASP-NET-Application-to-Use-State" rel="nofollow noreferrer">Configuring Server and SQL Server State</a> </li>
  <li><a href="https://support.microsoft.com/es-es/help/317604/how-to-configure-sql-server-to-store-asp-net-session-state" rel="nofollow noreferrer">HOW TO: Configure SQL Server to Store ASP.NET Session State</a></li>
  </ul>