天天看点

开启SharePoint页面的Session功能

1、C:/Program Files/Common Files/Microsoft Shared/web server extensions/60/TEMPLATE/LAYOUTS目录里的 web.config文件里缺少一句话

开启SharePoint页面的Session功能

< add  name ="Session"  type ="System.Web.SessionState.SessionStateModule" />

开启SharePoint页面的Session功能

加在<httpModules>里,加完之后的<httpModules>应该是这样的:

开启SharePoint页面的Session功能

     < httpModules >

开启SharePoint页面的Session功能

       < clear  />

开启SharePoint页面的Session功能

       < add  name ="OutputCache"  type ="System.Web.Caching.OutputCacheModule"   />

开启SharePoint页面的Session功能

       < add  name ="WindowsAuthentication"  type ="System.Web.Security.WindowsAuthenticationModule"   />

开启SharePoint页面的Session功能

        < add  name ="Session"  type ="System.Web.SessionState.SessionStateModule" />

开启SharePoint页面的Session功能

     </ httpModules >

2、在SPS门户所在IIS发布目录里,找到web.config ,修改Pages里的enableSessionState 为true ,修改后应该是这样的:

开启SharePoint页面的Session功能

< pages  enableSessionState ="true"  enableViewState ="true"  enableViewStateMac ="true"  validateRequest ="false"   />

WSS相关的更改方法见

http://support.microsoft.com/default.aspx?scid=kb;en-us;837376