If you don't use session state, you can improve performance of your web application by disabling session state.

If you want to disable the sessions for the whole application, you need to set the web.config in the following way:

  <configuration>
      <system.web>
      <sessionState
mode="Off" />

If you want you can disable the sessions state in a specific page:

<%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="False" %>
Tags: