Configure web.config to use the Session for SharePoint 2010
By default, the Session State in SharePoint 2010 is disable. If you want to use the Session in SharePoint 2010, you must change the web.config:
- Open the web.config of the SharePoint Site
- Set enableSessionState="true" in <pages> tag
- Add: <add name="Session" type="System.Web.SessionState.SessionStateModule" /> into <httpModules> tag
- Remove <remove name=”Session” /> in the <modules runAllManagedModulesForAllRequests="true"> tag
Now, having fun, you can use Session State in SharePoint 2010.
Comments
Post a Comment