天天看點

開啟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