SharePoint - Enable session state - Asked By Bookworm on 06-Jan-12 04:04 AM

Hi,

i dont know how to enable session state, i found some articles in google, and there was written that it can be doe in webconfig file, but im developing a visual web part in sharepoint 2010 and i dont know how to find the webconfig file
any help?

thnx
Jitendra Faye replied to Bookworm on 06-Jan-12 04:08 AM
Reference from-
http://msdn.microsoft.com/en-us/library/dd587352%28v=office.11%29.aspx


In a Microsoft® Windows® SharePoint™ Services deployment, web.config files are contained in the following folders within the file system:

  • Local_Drive:\Inetpub\wwwroot — The web.config file of the top-level content root folder that defines configuration settings for the virtual server of the default Web site in the Windows SharePoint Services deployment. In addition, the content root folder includes a \wpresources folder that contains a web.config file used in Web Part resources.
  • Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources — A web.config file that is used in Web Part resources for the Global Assembly Cache (GAC).
  • Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\CONFIG — The web.config file and other .config files that together define configuration settings for extending other virtual servers.
  • Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\ISAPI — The web.config file that defines configuration settings for the /_vti_bin virtual directory.
  • Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\TEMPLATE\LAYOUTS — The web.config file that defines configuration settings for the /_layouts virtual directory.
  • Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\TEMPLATE\ADMIN\Locale_ID — The web.config file that defines configuration settings for pages used in SharePoint Central Administration.
kalpana aparnathi replied to Bookworm on 06-Jan-12 04:08 AM
hi,,

Enable or disable session state across the entire farm

  1. On the taskbar, click Start, point to Administrative Tools, and then click SharePoint 3.0 Central Administration.

  2. In the top navigation bar, click the Application Management tab.

  3. On the Application Management page, in the Office SharePoint Servers Shared Services section, click Configure session state.

  4. On the Configure Session State page, in the Enable Session State section, select the Enable Session State check box to enable session state for the farm.

  5. To specify the duration of sessions, in the Timeout section, enter a number (in minutes) in the Session should be timed out after (minutes) box. The default is 60 minutes.

  6. Click OK to save the session state configuration.