How to make State server session mode work ?

Please do the below to make State Server session mode work :

1. To use StateServer mode, you must first be sure the ASP.NET state service is running on the server used for the session store. The ASP.NET state service is installed as a service when ASP.NET and the .NET Framework are installed. The ASP.Net state service is installed at the following location:

systemroot\Microsoft.NET\Framework\versionNumber\aspnet_state.exe

2. To configure an ASP.NET application to use StateServer mode, in the application's Web.config file do the following:

•Set the mode attribute of the sessionState element to StateServer.
•Set the stateConnectionString attribute to tcpip=serverName:42424.

3. To use StateServer mode in a Web farm, you must have the same encryption keys specified in the machineKey element of your Web configuration for all applications that are part of the Web farm.

No comments:

Popular Posts