To enable the Session status in SharePoint, we need to take following two steps:
1. Change the EnableSessionState to ture in the page declaration like below:
<%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="True" ...
2. Modify the web.config file (C:\inetpub\wwwroot\wss\VirtualDirectories\80 by default), add this line:
<add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition="" />
After
<remove name="Session" />
No comments:
Post a Comment