title: understanding Session State Mode c#
body: <p>I am creating a web app in asp.net mvc in my web.config I have a section called sessionState, like below</p>
  
  <pre><code>&lt;sessionState mode="InProc" timeout="25"&gt;&lt;/sessionState&gt;
  </code></pre>
  
  <p>whenever I change the mode to <code>InProc</code>, I can use sessions but when I changed the mode to <code>StateServer</code> I am not able to use sessions, after searching on google, I came to know that there are 5 types of <code>sessionstates</code></p>
  
  <blockquote>
    <p>InProc </p>
    
    <p>StateServer </p>
    
    <p>SQLServer </p>
    
    <p>Custom</p>
    
    <p>Off</p>
  </blockquote>
  
  <p>I just want to know, in which scenario the above sessionstate can be used,</p>