title: Session state can only be used when enableSessionState is set to true, When i use Server.Transfer
body: <p>Each Page in a website including Error page is Derived from Master page. In Master Page I am accessing the Session variables. When i get the Exception, handling in Page_Error or Application_Error Events. From there i am redirecting to the Error page using Server.Transfer, then i am getting this below exception in master page of Error.aspx. if i use Response.Redirect it works properly.</p>
  
  <pre><code>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 &lt;configuration&gt;\&lt;system.web&gt;\&lt;httpModules&gt; section in the application configuration.
  </code></pre>
  
  <p>please explain whats the problem with Server.Transfer in Detail.</p>