title: How to set website in IIS or web.config to keep session?
body: <p>Anytime I update a file in project and I am on website i loose authentication. Session is changing or I don't know what it happens. 
  What changes should I do?</p>
  
  <p>Thi is part of webconfig</p>
  
  <pre><code>&lt;system.web&gt;
      &lt;sessionState cookieless="UseCookies" mode="InProc" sqlCommandTimeout="1200" sqlConnectionString="Data Source=WINDOWS2008\SQLEXPRESS;User ID=dotnet;Password=1234" timeout="20" /&gt;
      &lt;globalization culture="en-US" /&gt;
      &lt;httpRuntime minFreeThreads="18" minLocalRequestFreeThreads="18" executionTimeout="1000000" maxRequestLength="1024000" requestLengthDiskThreshold="1024000" /&gt;
      &lt;!-- &lt;sessionState timeout="60" mode="InProc" /&gt;--&gt;
      &lt;!-- 
      Set compilation debug="true" to insert debugging 
      symbols into the compiled page. Because this 
      affects performance, set this value to true only 
      during development.
  --&gt;
      &lt;compilation debug="true" targetFramework="4.0"&gt;
          &lt;assemblies&gt;
              &lt;add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
          &lt;/assemblies&gt;
  </code></pre>