PowerShell指令打开
输入:Enable-SPSessionStateService -DatabaseName SharePoint_Session_State
方法二
1、C:Program FilesCommon FilesMicrosoft Sharedweb server extensions60TEMPLATELAYOUTS目录里的 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" />
sharepoint2013更改的web.config都在80下面