Yes , Session state can be turned off at the page or application level.
- To turn of the session state at the page level, set EnableSessionState="False" in the page directive.
<%@ Page Language="C#" EnableSessionState="False" AutoEventWireup="true" CodeFile="session_stste_demo.aspx.cs" Inherits="session_stste_demo" %>
- To turn of the session state at the application level, set SessionState mode=false in web.config file.
<sessionState mode="Off"></sessionState>
No comments:
Post a Comment