无 Cookie 会话在 SharePoint 中不起作用

发布于 2024-10-02 20:43:49 字数 199 浏览 0 评论 0原文

我无法在 SharePoint 中使用无 Cookie 会话。每次当我点击一个站点或子站点时,就会创建一个新的会话 ID,这与预期的行为不符(它在 URL 中可见)。如何在 SharePoint 中使用无 cookie 会话?

I am unable to use cookieless sessions in SharePoint. Everytime when I click on a site or subsite a new session id is getting created which is not as per expected behaviour (it is visible in the URL). How can I use cookieless sessions in SharePoint?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半衬遮猫 2024-10-09 20:43:49
  1. 创建共享服务提供商。这是启用会话状态所必需的,其内容数据库是我们会话数据的位置。如果您已有 SSP,则可以使用现有的。

  2. 如果需要,将您的 Web 应用程序与此 SSP 关联(如果它是您的第一个 SSP,则默认完成)。

  3. 在管理中心的“应用程序管理”下,选择“会话状态”,并确保其已启用。

  4. 从命令提示符导航到 Microsoft.NET 2.0 Framework 目录
    (通常:C:WINDOWSMicrosoft.NETFrameworkv2.0.50727)

  5. 修改您的 web.config:

取消注释以下行:

<add name=”Session” type=”System.Web.SessionState.SessionStateModule” />

修改以下行:

<pages enableSessionState=”true” … />
  1. 运行以下命令:

    aspnet_regsql.exe -S -d -ssadd -sstype c -E

其中:

<server_name>  is the database server where your database is located
<database_name>  is the content database of your shared services provider

运行 aspnet_regsql.exe /?有关其余选项的更多信息

  1. Create a Shared Services Provider. This is required in order to enable Session State and its content database is the location of our session data. If you already have an SSP, you can use the existing one.

  2. If needed, associate your web application with this SSP (done by default if it is your first SSP).

  3. In Central Administration, under Application Management, choose Session State, and ensure that it is enabled.

  4. From a command prompt, navigate to the Microsoft.NET 2.0 Framework directory
    (typically: C:WINDOWSMicrosoft.NETFrameworkv2.0.50727)

  5. Modify your web.config:

Uncomment the following line:

<add name=”Session” type=”System.Web.SessionState.SessionStateModule” />

Modify the following line:

<pages enableSessionState=”true” … />
  1. Run the following command:

    aspnet_regsql.exe -S -d -ssadd -sstype c -E

where:

<server_name>  is the database server where your database is located
<database_name>  is the content database of your shared services provider

Run aspnet_regsql.exe /? for more information on the remaining options

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文