In this post I am gonna tell you how to enable session state in MOSS 2007 web application. In MOSS session state is turned off by default due to performance reasons. If you want to utilize it in your web parts, event handlers etc etc you need to enable it by your self.
There are 2 ways to get this thing done.
1. Enabling session state from web application's web.config file.
2. Enabling session state using SSP (preferred option)
1. Enabling session state from web application's web.config file:
Un comment the following line in the web.config for the web application.
-----------------------------------------------------------------------------------------------------------
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
-----------------------------------------------------------------------------------------------------------
2. Enabling session state using SSP (preferred option):
Create Shared Service Provide site and associate your web application with it. Basically MOSS uses the Shared Service Provider to allow / manage session state for a Farm and for the associated web applications under attached SSP.
There are 2 ways to get this thing done.
1. Enabling session state from web application's web.config file.
2. Enabling session state using SSP (preferred option)
1. Enabling session state from web application's web.config file:
Un comment the following line in the web.config for the web application.
-----------------------------------------------------------------------------------------------------------
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
-----------------------------------------------------------------------------------------------------------
2. Enabling session state using SSP (preferred option):
Create Shared Service Provide site and associate your web application with it. Basically MOSS uses the Shared Service Provider to allow / manage session state for a Farm and for the associated web applications under attached SSP.
No comments:
Post a Comment