title: Session state enableSessionState issues in asp.net application
body: <p>I get the following error in the production environment</p>
  
  <blockquote>
    <p>Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the configuration\system.web\httpModules section in the application configuration. </p>
  </blockquote>
  
  <p>The following things I have tried as of now</p>
  
  <ul>
  <li>Checked <code>machine.config</code> and <code>web.config</code>, both have <code>enableSessionState="true"</code></li>
  <li>Added <code>enableSessionState="true"</code> to pages in <code>web.config</code></li>
  <li>State module is also added in <code>&lt;httpmodules&gt;</code> section</li>
  <li>Even tried setting <code>enableSessionState="true"</code> in page directive</li>
  </ul>
  
  <p>Note: When I try to debug the code in Dev environment, everything works fine as it should.</p>
  
  <p>Can anyone help me out getting over this issue, I just can't figure out a way out of it.</p>