开启SharePoint页面的Session功能
1、C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\LAYOUTS目录里的 web.config文件里缺少一句话
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
加在<httpModules>里,加完之后的<httpModules>应该是这样的:
<httpModules>
<clear />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
</httpModules>
<clear />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
</httpModules>
2、在SPS门户所在IIS发布目录里,找到web.config ,修改Pages里的enableSessionState 为true ,修改后应该是这样的:
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />
WSS相关的更改方法见
http://support.microsoft.com/default.aspx?scid=kb;en-us;837376