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:

 

  1. Open the web.config of the SharePoint Site
  2. Set enableSessionState="true" in <pages> tag
  3. Add: <add name="Session" type="System.Web.SessionState.SessionStateModule" /> into <httpModules> tag
  4. Remove <remove name=”Session” /> in the <modules runAllManagedModulesForAllRequests="true"> tag

 

Now, having fun, you can use Session State in SharePoint 2010.

Comments

Popular posts from this blog

Setup SharePoint 2010

Register CSS to SP Master Page