Is Session state can be turned off ?


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

Xamarin Android Project App

Xamarin Android Project App 1. Xamarin -- Make a CALCULATOR Android App   https://drive.google.com/open?id=0B8OPCXLrtKPmWC1FWWtFM2lraVk...