title: ASP.NET MVC session variables timeOut
body: <p>I have a ASP.NET MVC website that need to run on a computer 24h/24</p>
  
  <p>I use session to store variables that I get through a configuration file or an external API:</p>
  
  <pre><code>HttpContext.Session["Value"]
  </code></pre>
  
  <p>In my web.config file, I set the session timeOut to maximum :</p>
  
  <pre><code>&lt;system.web&gt;
    &lt;sessionState timeout="525600" /&gt;
  </code></pre>
  
  <p>The website need to be displayed for a long time and still have the session variables when I click on a button. (maybe 1-2 day later)</p>
  
  <p>Will it work like that ? Is there something to do in the IIS configuration too? </p>
  
  <p>I ask because it's difficult to test it...</p>