Open the project you want to change. Right-click the project name in Project Explorer and select properties from the shortcut menu. Click the Enable session state checkbox to allow session state for the application. Close the properties pages to complete the change. Session variables may be programmatically disabled.
Developers can use a server-side script directive to disable session variables.
Enable session variables via the directive line at the beginning of ASP pages. Enable session variables with Visual InterDev 6.0. To enable session variables using Visual InterDev, Open the project you wish to change. Right-click the page name in Project Explorer and select Properties from the shortcut menu. Click the Enable session state checkbox to allow session state for the page.