Sharepoint solutions

November 13, 2007

Session state in MOSS

Filed under: main — admin @ 4:38 pm

By default sesion state is enabled for farms in sharepoint. To prove that go to Central Administration ->Application Management ->Office SharePoint Server Shared Services -> Configure session state. But, to use session in your code you must turn on session either in web.config or in your pages. One line in web.config must look like:
<pages enableSessionState=”true” … and one line must be uncomment: <add name=”Session” type=”System.Web.SessionState.SessionStateModule”/>. To turn on session in the specific page – simply set EnableSessionState=”True” in the Page directive.

1 Comment

  1. [...] be easy modified to work with different rdlc files and different table data. More over, we can use session to pass data source to the code from another [...]

    Pingback by Sharepoint solutions » Using ReportViewer control in Sharepoint — November 17, 2007 @ 6:31 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress