Pages

Thursday, August 29, 2013

How Configure the State Service and Session State Persistence (IIS 6.0)


This is an article about how to configure the State service on the ASP.NET State Server and Session State persistence on IIS 6.0.

 

Configure the State Service on the ASP.NET State Server (IIS 6.0)
Description: - The ASP.NET state service is used to manage session state on a computer. The ASP.NET state service is installed by default when Microsoft® Windows® Server 2003 is installed. The file aspnet_state.exe is installed on the remote server that will store session state information; the default location is systemroot\Microsoft.NET\Framework\version\aspnet_state.exe.

Procedures

To configure the ASP.NET state service

1.
On the remote server that will store session state information, open Administrative Tools, and then click Services.
2.
In the details pane, right-click ASP.NET State Service, and then click Properties.
3.
On the General tab, in the Startup type list box, click Automatic.
4.
Under Service status, click Start, and then click OK. The state service starts automatically when the Web server is restarted.
Enabling Session State Persistence (IIS 6.0)
Description: - You can enable session state persistence for ASP applications. If you enable session state persistence, the server will create a new Session object for each connection and session state will be accessible, session storage will be allowed, Session_OnStart and Session_OnEnd will occur, and ASPSessionID cookie will be sent to the client. If you do not enable session state persistence, state access and storage are not allowed, events are not processed, and no cookie is sent. By default, session state persistence is enabled with the session timeout at 20 minutes. The corresponding metabase property is AspAllowSessionState Metabase Property.

Procedures

To enable session state persistence for an ASP application

1.
In IIS Manager, expand local computer, Go to Web site/Web Application’s Properties.
2.
Click the appropriate tab: Home Directory, Virtual Directory, or Directory.
3.
In the Application settings area, click Configuration, and then click the Options tab.
4.
On the Options tab, in the Application configuration section, select the Enable session state check box.
5.
In the Session timeout box, click the up or down arrow to set the number of minutes until the session expires.
6.
Click OK.

No comments:

Post a Comment