SharePoint 2010 session
来源:互联网 发布:微软办公软件多少钱 编辑:程序博客网 时间:2024/05/17 20:28
SharePoint 2010 uses two services related to session state that have similar names but are separate and have different purposes.
- ASP.NET session state may be used on SharePoint 2010 pages. This service is automatically disabled in normal installations of SharePoint 2010; it may be enabled using the instructions below. Once enabled, it appears on the Service Applications page as “SharePoint Server ASP.NET Session State Service.”
- The State Service service application is designed for and only available to Office internal components such as InfoPath Forms Services and Visio Services. This service is automatically enabled in typical installations of SharePoint 2010 and is not related to ASP.NET session state. It appears on the Service Applications page as “State Service.”
To enable ASP.NET session state:
- Enter the following PowerShell command in the SharePoint 2010 Management Shell window:
Enable-SPSessionStateService –DefaultProvision
- On each web application for which you want to use session state, edit the web.config file and set the enableSessionState property of the pages element as follows:
<pages enableSessionState="true"
Guidelines for using SharePoint Server ASP.NET Session State:
- This session state may be used by custom code in web parts and other page-hosted controls.
- Session state information is stored in a configurable SQL database; this implies the following:
- Load-balancer affinity is not required.
- Heavy use of session state must be included in database/capacity planning. By default, the session state database is created on the same database server hosting the SharePoint 2010 farm configuration database. This can be changed to place it on another server; this can be done at a later date if necessary. To move it to another SQL server, it should first be disabled, then enabled again with different configuration that points to the other server.
- When enabled, Session state is available to the whole 2010 farm. Each web application can choose to enable it for use on ASP.NET pages (enableSessionState="true").
- Session state is partitioned using the root URL. This means that different web applications will have different session state objects; a web part can only access the session state object available to it. If host header site collections are used, then different session objects will be used for each site collection (the browser will have multiple session ids in different cookies).
Additional information about enabling session state:
Syntax 1
Syntax 2
Enable-SPSessionStateService
-DefaultProvision
Enable-SPSessionStateService
-DatabaseName <String>
[-DatabaseServer <String>]
[-DatabaseCredentials <PSCredential>]
Additional parameters are not discussed here; use Get-Help Enable-SPSessionStateService –full for more information.
The Enable-SPSessionStateService cmdlet creates a session state database, installs the ASP.NET session state schema, and updates the Web.config files on the farm to turn on the session state service.
If the DefaultProvision form of the command is used, all default settings are used. These are:
- DatabaseName = “SessionStateService_<GUID>”
- DatabaseServer = the same database server as the SharePoint 2010 configuration database
- DatabaseCredentials = Integrated Windows Authentication
If the DatabaseName form of the command is used, then these parameters may be set explicitly. If some of the parameters are not included, they default as above. To set specific credentials for accessing the session state database, note that this allows you to specify a SQL Authentication credential only, not a Windows credential. Then, use the Get-Credential command to create a PSCredential object from a username and password, then use that object as the argument of the DatabaseCredentials parameter.
After this service is enabled, “SharePoint Server ASP.NET Session State Service” will appear on the Service Applications management page.
- SharePoint 2010 session
- SharePoint 2010 使用Session
- 在SharePoint 2010里启用 Session
- 在sharepoint 2010中使用Session
- 如何在 Sharepoint 2010 中使用Session ?
- 在SharePoint 2010里启用 Session .
- 在SharePoint 2010程序中使用Session
- 在SharePoint 2010程序中使用Session
- sharepoint 2010 启用Session功能配置方法
- 在Sharepoint 2010中启用Session功能的说明文档
- 在SharePoint里启用Session
- Sharepoint 2010
- SharePoint 2010
- 开启SharePoint页面的Session功能
- 开启SharePoint页面的Session功能
- SharePoint 会话(Session)状态和状态服务
- Sharepoint 会话Session和状态服务
- SharePoint 2010 vs SharePoint 2013
- java.lang.IllegalArgumentException: sessionFactory or hibernateTemplate is required 错误解决方法
- 把书上的字快速弄到电脑上
- JavaScript中的undefined
- 面试小程序
- 开机后音量图标不出现在任务栏
- SharePoint 2010 session
- 什么是上拉电阻,什么是下拉电阻?
- textarea 换行问题
- 蘑菇管理定律
- Windows XP用户账户空白问题
- jsp中 el表达式的学习文章
- (二)Android Framework概述
- spring框架初识
- 打不开chm的解决办法