How to disable session state management in ASP.NET

Software developer can disable session state management using option “Off”. This can provide a slight performance improvement for websites that are not using session state:

C# in Depth, 3rd EditionManaged Windows VPS Hosting


<?xml version=”1.0” encoding=”utf-8” ?>
     <!— other settings are omitted. —>
        cookieless=”AutoDetect” cookieName=”ASP.NET_SessionID”
        sqlConnectionString=”data source=;Integrated Security=SSPI”
        sqlCommandTimeout=”30” allowCustomSqlDatabase=”false”