If we set session Mode="off" in web.config, session will be disabled in the application. For this, we need to configure web.config the following way:
<configuration> <sessionstate Mode="off"/> </configuration>