開啓SharePoint頁面的Session功能

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

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


加在<httpModules>裏,加完之後的<httpModules>應該是這樣的:

None.gif    <httpModules>
None.gif      
<clear />
None.gif      
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
None.gif      
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
None.gif       
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
None.gif    
</httpModules>

2、在SPS門戶所在IIS發佈目錄裏,找到web.config ,修改Pages裏的enableSessionState 爲true ,修改後應該是這樣的:
None.gif<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />

WSS相關的更改方法見
http://support.microsoft.com/default.aspx?scid=kb;en-us;837376
發佈了53 篇原創文章 · 獲贊 0 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章