Disable Session State at the Page Level

Answer Posted / skmdali786

1)Start Microsoft Visual Studio .NET, and create a new
ASP.NET Web Application.
2)In Solution Explorer, double-click the Web Form for which
you want to disable session state.
3)Click the HTML tab.
4)At the top of the page, add EnableSessionState="false" in
the @ Page directive. The modified attribute should appear

similar to the following:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication1.WebForm1"
EnableSessionState="false" %>

5)Save the file and/or project to disable session state
throughout all pages in the application.

Hope it is Clear

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any alternative to avoid name collisions other then Namespaces?

570


Which authentication uses a combination of windows and iis authentication?

580


To add a hyperlink column to the DataGrid which tag is used ?

581


How can you access the properties and controls of master pages from content pages?

513


In which event of page cycle is the viewstate available?

574






what is silver light when will we use silver light,

1439


What are the different properties of server control that exists?

563


Where sessions are stored?

650


How to Separate background image and front image from original picture....

552


How to you can limit Access to Web API to Specific HTTP Verb?

662


What do you mean by authorization?

518


What is ASLM?

678


What is the parent class of all web server control?

537


Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?

535


What is asp net objects?

521