在SharePoint服务器之间共享会话 [英] Sharing Sessions between SharePoint Servers
问题描述
我希望找到一个在多个农场共享会话的解决方案。我有一个应用程序,包括2个前端Web应用程序SharePoint服务器。
我通过powershell启用了ASP.Net会话,并在web.config中进行了手动更改,如< page enabledsession = true。
在管理中心和数据库中激活了会话服务。
但问题是,当我在一个服务器中创建会话变量并尝试在其他服务器中使用该会话时,我得到了空值。
我已经配置了负载bala ncer在那之上。
请告诉我如何配置会话,以便它可以在2台服务器之间共享。
谢谢。
您是否在其他服务器的Web应用程序中添加了sessionstate条目?
< sessionState mode =" SQLServer" timeout =" 60"allowCustomSqlDatabase =" true" sqlConnectionString ="数据源= SP2010VM;初始目录= SessionStateService_1079ab25364440b0b38b15ad2392b6d0; Integrated Security = True; Enlist = False; Connect Timeout = 15" />或者作为解决方法,我们可以查询数据库以获取其他服务器中的会话。
更多信息:
SharePoint中的ASP.NET会话状态实施
https://collab365.community/asp-net -session-state-implementation-in-sharepoint /
最好的问候,
Dennis
Hi,
I am looking to find a solution to share sessions in multi farms. I have an application which consist of 2 front web app SharePoint servers.
I enabled ASP.Net session through powershell and made manual changes in web.config like <page enabledsession = true.
Session service activated in Central Administration and database also created.
But the issue is, when I created session variable in one server and try to use that session in other server, I got null value.
I have configured load balancer on the top of that.
Kindly let me know how can I configured session so that it can be share between 2 servers.
Thanks.
Hi,
Did you add sessionstate entry in web application in another server?
<sessionState mode="SQLServer" timeout="60″ allowCustomSqlDatabase="true" sqlConnectionString="Data Source=SP2010VM;Initial Catalog=SessionStateService_1079ab25364440b0b38b15ad2392b6d0;Integrated Security=True;Enlist=False;Connect Timeout=15" />Or as a workaround, we can query the Database to get the Session in other servers.
More information:
ASP.NET Session State implementation in SharePoint
https://collab365.community/asp-net-session-state-implementation-in-sharepoint/
Best Regards,
Dennis
这篇关于在SharePoint服务器之间共享会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!