在SharePoint服务器之间共享会话 [英] Sharing Sessions between SharePoint Servers

查看:62
本文介绍了在SharePoint服务器之间共享会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我希望找到一个在多个农场共享会话的解决方案。我有一个应用程序,包括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" /> 

或者作为解决方法,我们可以查询数据库以获取其他服务器中的会话。


HTTPS://social.msdn .microsoft.com /论坛/办公室/ EN-US / e0233d79-84ee-4596-b699-11ee03cfc559 /的SharePoint 2013 - 当用户登录放弃的一个全新的会话令牌和过期的,所有以前的-token s?forum = sharepointdevelopment


更多信息:


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.

https://social.msdn.microsoft.com/Forums/office/en-US/e0233d79-84ee-4596-b699-11ee03cfc559/sharepoint-2013-when-user-login-give-a-new-session-token-and-expire-all-previous-tokens?forum=sharepointdevelopment

More information:

ASP.NET Session State implementation in SharePoint

https://collab365.community/asp-net-session-state-implementation-in-sharepoint/

Best Regards,

Dennis


这篇关于在SharePoint服务器之间共享会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆